Index: trunk/phase3/includes/specials/SpecialUploadStash.php |
— | — | @@ -113,8 +113,8 @@ |
114 | 114 | // ok we're here so the original must exist. Generate the thumbnail. |
115 | 115 | // because the file is a UploadStashFile, this thumbnail will also be stashed, |
116 | 116 | // and a thumbnailFile will be created in the thumbnailImage composite object |
117 | | - $thumbnailImage = null; |
118 | | - if ( !( $thumbnailImage = $origFile->getThumbnail( $width ) ) ) { |
| 117 | + $thumbnailImage = $origFile->transform( array( 'width' => $width ) ); |
| 118 | + if ( !$thumbnailImage ) { |
119 | 119 | throw new MWException( 'Could not obtain thumbnail' ); |
120 | 120 | } |
121 | 121 | $file = $thumbnailImage->thumbnailFile; |