r90579 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r90578‎ | r90579 | r90580 >
Date:11:52, 22 June 2011
Author:reedy
Status:deferred
Tags:
Comment:
Followup r87600, fix method call in FCKEditor
Modified paths:
  • /trunk/extensions/FCKeditor/FCKeditorSkin.body.php (modified) (history)

Diff [purge]

Index: trunk/extensions/FCKeditor/FCKeditorSkin.body.php
@@ -21,7 +21,6 @@
2222 $thumb = false, $manual_thumb = '', $valign = '' ) {
2323 $orginal = $nt->getText();
2424 $img = wfFindFile( $nt );
25 - $imgName = $img->getName();
2625 $found = $img->getURL();
2726
2827 if( !is_null( $alt ) && ( $alt == 'RTENOTITLE' ) ) { // 2223
@@ -30,7 +29,17 @@
3130
3231 if( $found ) {
3332 // trick to get real URL for image:
34 - $originalLink = strip_tags( Linker::makeImageLink2( $nt, $label, $alt, $align, $params, $framed, $thumb, $manual_thumb, $valign ), '<img>' );
 33+ $frameParams = array(
 34+ 'alt' => $alt,
 35+ 'caption' => $label,
 36+ 'align' => $align,
 37+ 'framed' => $framed,
 38+ 'thumbnail' => $thumb,
 39+ 'manualthumb' => $manual_thumb,
 40+ 'valign' => $valign
 41+ );
 42+
 43+ $originalLink = strip_tags( Linker::makeImageLink2( $nt, $img, $frameParams, $params ), '<img>' );
3544 $srcPart = substr( $originalLink, strpos( $originalLink, "src=" ) + 5 );
3645 $url = strtok( $srcPart, '"' );
3746 }

Past revisions this follows-up on

RevisionCommit summaryAuthorDate
r87600Remove another unused deprecated function...reedy23:31, 6 May 2011

Status & tagging log