Index: trunk/extensions/FCKeditor/FCKeditorSkin.body.php |
— | — | @@ -21,7 +21,6 @@ |
22 | 22 | $thumb = false, $manual_thumb = '', $valign = '' ) { |
23 | 23 | $orginal = $nt->getText(); |
24 | 24 | $img = wfFindFile( $nt ); |
25 | | - $imgName = $img->getName(); |
26 | 25 | $found = $img->getURL(); |
27 | 26 | |
28 | 27 | if( !is_null( $alt ) && ( $alt == 'RTENOTITLE' ) ) { // 2223 |
— | — | @@ -30,7 +29,17 @@ |
31 | 30 | |
32 | 31 | if( $found ) { |
33 | 32 | // 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>' ); |
35 | 44 | $srcPart = substr( $originalLink, strpos( $originalLink, "src=" ) + 5 ); |
36 | 45 | $url = strtok( $srcPart, '"' ); |
37 | 46 | } |