Index: trunk/extensions/SocialProfile/UserProfile/UserProfilePage.php |
— | — | @@ -440,13 +440,13 @@ |
441 | 441 | $image_1 = $image_2 = ''; |
442 | 442 | $render_1 = wfFindFile( $item['img1'] ); |
443 | 443 | if ( is_object( $render_1 ) ) { |
444 | | - $thumb_1 = $render_1->getThumbnail( 25 ); |
| 444 | + $thumb_1 = $render_1->transform( array( 'width' => 25 ) ); |
445 | 445 | $image_1 = $thumb_1->toHtml(); |
446 | 446 | } |
447 | 447 | |
448 | 448 | $render_2 = wfFindFile( $item['img2'] ); |
449 | 449 | if ( is_object( $render_2 ) ) { |
450 | | - $thumb_2 = $render_2->getThumbnail( 25 ); |
| 450 | + $thumb_2 = $render_2->transform( array( 'width' => 25 ) ); |
451 | 451 | $image_2 = $thumb_2->toHtml(); |
452 | 452 | } |
453 | 453 | |
Index: trunk/extensions/QuizGame/QuestionGameHome.body.php |
— | — | @@ -314,7 +314,7 @@ |
315 | 315 | // You know why this check is here, just grep for the function |
316 | 316 | // name (I'm too lazy to copypaste it here for the third time). |
317 | 317 | if ( is_object( $image ) ) { |
318 | | - $thumb = $image->getThumbnail( 80, 0, true ); |
| 318 | + $thumb = $image->transform( array( 'width' => 80, 'height' => 0 ) ); |
319 | 319 | $thumbnail = $thumb->toHtml(); |
320 | 320 | } |
321 | 321 | } |
— | — | @@ -568,7 +568,7 @@ |
569 | 569 | // independently deleted from the quiz game, poor users will |
570 | 570 | // stumble upon nasty fatals without this check here. |
571 | 571 | if ( is_object( $image ) ) { |
572 | | - $thumb = $image->getThumbnail( 80 ); |
| 572 | + $thumb = $image->transform( array( 'width' => 80 ) ); |
573 | 573 | $thumbtag = $thumb->toHtml(); |
574 | 574 | } |
575 | 575 | |
Index: trunk/extensions/QuizGame/QuestionGameUpload.php |
— | — | @@ -296,7 +296,7 @@ |
297 | 297 | $img = $this->mLocalFile; |
298 | 298 | |
299 | 299 | if ( !$img ) { |
300 | | - // This should NOT be happening...the getThumbnail() call below |
| 300 | + // This should NOT be happening...the transform() call below |
301 | 301 | // will cause a fatal error if $img is not an object |
302 | 302 | error_log( |
303 | 303 | 'QuizGame/MiniAjaxUpload FATAL! $this->mUpload is: ' . |
— | — | @@ -304,7 +304,7 @@ |
305 | 305 | ); |
306 | 306 | } |
307 | 307 | |
308 | | - $thumb = $img->getThumbnail( $thumbWidth ); |
| 308 | + $thumb = $img->transform( array( 'width' => $thumbWidth ) ); |
309 | 309 | $img_tag = $thumb->toHtml(); |
310 | 310 | $slashedImgTag = addslashes( $img_tag ); |
311 | 311 | |
Index: trunk/extensions/PictureGame/PictureGameHome.body.php |
— | — | @@ -476,13 +476,13 @@ |
477 | 477 | $img_one_tag = $img_two_tag = ''; |
478 | 478 | $img_one = wfFindFile( $row->img1 ); |
479 | 479 | if ( is_object( $img_one ) ) { |
480 | | - $thumb_one = $img_one->getThumbnail( 128 ); |
| 480 | + $thumb_one = $img_one->transform( array( 'width' => 128 ) ); |
481 | 481 | $img_one_tag = $thumb_one->toHtml(); |
482 | 482 | } |
483 | 483 | |
484 | 484 | $img_two = wfFindFile( $row->img2 ); |
485 | 485 | if ( is_object( $img_two ) ) { |
486 | | - $thumb_two = $img_two->getThumbnail( 128 ); |
| 486 | + $thumb_two = $img_two->transform( array( 'width' => 128 ) ); |
487 | 487 | $img_two_tag = $thumb_two->toHtml(); |
488 | 488 | } |
489 | 489 | |
— | — | @@ -536,13 +536,13 @@ |
537 | 537 | $img_one_tag = $img_two_tag = ''; |
538 | 538 | $img_one = wfFindFile( $row->img1 ); |
539 | 539 | if ( is_object( $img_one ) ) { |
540 | | - $thumb_one = $img_one->getThumbnail( 128 ); |
| 540 | + $thumb_one = $img_one->transform( array( 'width' => 128 ) ); |
541 | 541 | $img_one_tag = $thumb_one->toHtml(); |
542 | 542 | } |
543 | 543 | |
544 | 544 | $img_two = wfFindFile( $row->img2 ); |
545 | 545 | if ( is_object( $img_two ) ) { |
546 | | - $thumb_two = $img_two->getThumbnail( 128 ); |
| 546 | + $thumb_two = $img_two->transform( array( 'width' => 128 ) ); |
547 | 547 | $img_two_tag = $thumb_two->toHtml(); |
548 | 548 | } |
549 | 549 | |
— | — | @@ -865,13 +865,13 @@ |
866 | 866 | $gallery_thumbnail_one = $gallery_thumbnail_two = ''; |
867 | 867 | $img_one = wfFindFile( $row->img1 ); |
868 | 868 | if ( is_object( $img_one ) ) { |
869 | | - $gallery_thumb_image_one = $img_one->getThumbnail( 80 ); |
| 869 | + $gallery_thumb_image_one = $img_one->transform( array( 'width' => 80 ) ); |
870 | 870 | $gallery_thumbnail_one = $gallery_thumb_image_one->toHtml(); |
871 | 871 | } |
872 | 872 | |
873 | 873 | $img_two = wfFindFile( $row->img2 ); |
874 | 874 | if ( is_object( $img_two ) ) { |
875 | | - $gallery_thumb_image_two = $img_two->getThumbnail( 80 ); |
| 875 | + $gallery_thumb_image_two = $img_two->transform( array( 'width' => 80 ) ); |
876 | 876 | $gallery_thumbnail_two = $gallery_thumb_image_two->toHtml(); |
877 | 877 | } |
878 | 878 | |
— | — | @@ -1151,7 +1151,7 @@ |
1152 | 1152 | if( $next_id ) { |
1153 | 1153 | $img_one = wfFindFile( $nextrow->img1 ); |
1154 | 1154 | if( is_object( $img_one ) ) { |
1155 | | - $preload_thumb = $img_one->getThumbnail( 256 ); |
| 1155 | + $preload_thumb = $img_one->transform( array( 'width' => 256 ) ); |
1156 | 1156 | } |
1157 | 1157 | if( is_object( $preload_thumb ) ) { |
1158 | 1158 | $preload_one_tag = $preload_thumb->toHtml(); |
— | — | @@ -1159,7 +1159,7 @@ |
1160 | 1160 | |
1161 | 1161 | $img_two = wfFindFile( $nextrow->img2 ); |
1162 | 1162 | if( is_object( $img_two ) ) { |
1163 | | - $preload_thumb = $img_two->getThumbnail( 256 ); |
| 1163 | + $preload_thumb = $img_two->transform( array( 'width' => 256 ) ); |
1164 | 1164 | } |
1165 | 1165 | if( is_object( $preload_thumb ) ) { |
1166 | 1166 | $preload_two_tag = $preload_thumb->toHtml(); |
— | — | @@ -1295,14 +1295,14 @@ |
1296 | 1296 | |
1297 | 1297 | if( $isPermalink || $isShowVotes ) { |
1298 | 1298 | if( is_object( $img_one ) ) { |
1299 | | - $vote_one_thumb = $img_one->getThumbnail( 40 ); |
| 1299 | + $vote_one_thumb = $img_one->transform( array( 'width' => 40 ) ); |
1300 | 1300 | } |
1301 | 1301 | if( is_object( $vote_one_thumb ) ) { |
1302 | 1302 | $vote_one_tag = $vote_one_thumb->toHtml(); |
1303 | 1303 | } |
1304 | 1304 | |
1305 | 1305 | if( is_object( $img_two ) ) { |
1306 | | - $vote_two_thumb = $img_two->getThumbnail( 40 ); |
| 1306 | + $vote_two_thumb = $img_two->transform( array( 'width' => 40 ) ); |
1307 | 1307 | } |
1308 | 1308 | if( is_object( $vote_two_thumb ) ) { |
1309 | 1309 | $vote_two_tag = $vote_two_thumb->toHtml(); |
Index: trunk/extensions/PictureGame/AjaxUploadForm.php |
— | — | @@ -294,7 +294,7 @@ |
295 | 295 | $img = $this->mLocalFile; |
296 | 296 | |
297 | 297 | if ( !$img ) { |
298 | | - // This should NOT be happening...the getThumbnail() call below |
| 298 | + // This should NOT be happening...the transform() call below |
299 | 299 | // will cause a fatal error if $img is not an object |
300 | 300 | error_log( |
301 | 301 | 'PictureGame/MiniAjaxUpload FATAL! $this->mUpload is: ' . |
— | — | @@ -302,7 +302,7 @@ |
303 | 303 | ); |
304 | 304 | } |
305 | 305 | |
306 | | - $thumb = $img->getThumbnail( $thumbWidth ); |
| 306 | + $thumb = $img->transform( array( 'width' => $thumbWidth ) ); |
307 | 307 | $img_tag = $thumb->toHtml(); |
308 | 308 | $slashedImgTag = addslashes( $img_tag ); |
309 | 309 | |
Index: trunk/extensions/PollNY/MiniAjaxUpload.php |
— | — | @@ -281,7 +281,7 @@ |
282 | 282 | $img = $this->mLocalFile; |
283 | 283 | |
284 | 284 | if ( !$img ) { |
285 | | - // This should NOT be happening...the getThumbnail() call below |
| 285 | + // This should NOT be happening...the transform() call below |
286 | 286 | // will cause a fatal error if $img is not an object |
287 | 287 | error_log( |
288 | 288 | 'PollNY/MiniAjaxUpload FATAL! $this->mUpload is: ' . |
— | — | @@ -289,7 +289,7 @@ |
290 | 290 | ); |
291 | 291 | } |
292 | 292 | |
293 | | - $thumb = $img->getThumbnail( $thumbWidth ); |
| 293 | + $thumb = $img->transform( array( 'width' => $thumbWidth ) ); |
294 | 294 | $img_tag = $thumb->toHtml(); |
295 | 295 | $slashedImgTag = addslashes( $img_tag ); |
296 | 296 | |
Index: trunk/extensions/BlogPage/SpecialArticlesHome.php |
— | — | @@ -210,7 +210,7 @@ |
211 | 211 | $img = wfFindFile( $pageImage ); |
212 | 212 | $imgTag = ''; |
213 | 213 | if ( is_object( $img ) ) { |
214 | | - $thumb = $img->getThumbnail( 65, 0, true ); |
| 214 | + $thumb = $img->transform( array( 'width' => 65, 'height' => 0 ) ); |
215 | 215 | $imgTag = $thumb->toHtml(); |
216 | 216 | } |
217 | 217 | |
— | — | @@ -578,7 +578,7 @@ |
579 | 579 | $img = wfFindFile( $pageImage ); |
580 | 580 | $imgTag = ''; |
581 | 581 | if ( is_object( $img ) ) { |
582 | | - $thumb = $img->getThumbnail( 65, 0, true ); |
| 582 | + $thumb = $img->transform( array( 'width' => 65, 'height' => 0 ) ); |
583 | 583 | $imgTag = $thumb->toHtml(); |
584 | 584 | } |
585 | 585 | |
Index: trunk/extensions/BlogPage/SpecialArticleLists.php |
— | — | @@ -92,7 +92,7 @@ |
93 | 93 | $img = wfFindFile( $pageImage ); |
94 | 94 | $imgTag = ''; |
95 | 95 | if ( is_object( $img ) ) { |
96 | | - $thumb = $img->getThumbnail( 65, 0, true ); |
| 96 | + $thumb = $img->transform( array( 'width' => 65, 'height' => 0 ) ); |
97 | 97 | $imgTag = $thumb->toHtml(); |
98 | 98 | } |
99 | 99 | |
Index: trunk/extensions/RandomImageByCategory/RandomImageByCategory.php |
— | — | @@ -110,7 +110,7 @@ |
111 | 111 | $image_title = Title::makeTitle( NS_FILE, $random_image ); |
112 | 112 | $render_image = wfFindFile( $random_image ); |
113 | 113 | |
114 | | - $thumb_image = $render_image->getThumbnail( $width ); |
| 114 | + $thumb_image = $render_image->transform( array( 'width' => $width ) ); |
115 | 115 | $thumbnail = "<a href=\"{$image_title->escapeFullURL()}\">{$thumb_image->toHtml()}</a>"; |
116 | 116 | } |
117 | 117 | |
Index: trunk/extensions/FanBoxes/MiniAjaxUpload.php |
— | — | @@ -279,7 +279,7 @@ |
280 | 280 | $img = $this->mLocalFile; |
281 | 281 | |
282 | 282 | if ( !$img ) { |
283 | | - // This should NOT be happening...the getThumbnail() call below |
| 283 | + // This should NOT be happening...the transform() call below |
284 | 284 | // will cause a fatal error if $img is not an object |
285 | 285 | error_log( |
286 | 286 | 'FanBox/MiniAjaxUpload FATAL! $this->mUpload is:' . |
— | — | @@ -287,7 +287,7 @@ |
288 | 288 | ); |
289 | 289 | } |
290 | 290 | |
291 | | - $thumb = $img->getThumbnail( $thumbWidth ); |
| 291 | + $thumb = $img->transform( array( 'width' => $thumbWidth ) ); |
292 | 292 | $img_tag = $thumb->toHtml(); |
293 | 293 | $slashedImgTag = addslashes( $img_tag ); |
294 | 294 | |