Index: trunk/extensions/DumpHTML/README |
— | — | @@ -1 +1,5 @@ |
2 | | -Work in progress on a replacement for maintenance/dumpHTML.php, to work with MW 1.11+. |
| 2 | +Dumps out the HTML for the Wiki. Includes the actual URL of the image (which |
| 3 | +is ordinarily searched-for among the configured Repos). |
| 4 | + |
| 5 | +Was originally maintenance/dumpHTML.php, but was moved into an extension. |
| 6 | + |
Index: trunk/extensions/ImageTagging/ImageTagging_body.php |
— | — | @@ -270,7 +270,8 @@ |
271 | 271 | ''; |
272 | 272 | |
273 | 273 | $s .= ( $i%4 == 0 ) ? '<tr>' : ''; |
274 | | - $thumb = $img->getThumbnail( 120, 120 ); |
| 274 | + $thumb = $img->transform(array( 'width' => 120, 'height' => 120 ) , 0 ); |
| 275 | + |
275 | 276 | $vpad = floor( ( 150 - $thumb->height ) /2 ) - 2; |
276 | 277 | $s .= '<td><div class="gallerybox">' . '<div class="thumb" style="padding: ' . $vpad . 'px 0;">'; |
277 | 278 | |
Index: trunk/extensions/ImageTagging/ImageTagPage.php |
— | — | @@ -95,7 +95,8 @@ |
96 | 96 | # because of rounding. |
97 | 97 | } |
98 | 98 | |
99 | | - $thumbnail = $this->getFile()->getThumbnail( $width ); |
| 99 | + $thumbnail = $this->getFile()->transform(array( 'width' => $width ) , 0 ); |
| 100 | + |
100 | 101 | if ( $thumbnail == null ) { |
101 | 102 | $url = $this->getFile()->getViewURL(); |
102 | 103 | } else { |
— | — | @@ -259,4 +260,4 @@ |
260 | 261 | |
261 | 262 | return $r; |
262 | 263 | } |
263 | | -} |
\ No newline at end of file |
| 264 | +} |