Index: trunk/extensions/VipsScaler/SpecialVipsTest.php |
— | — | @@ -75,12 +75,19 @@ |
76 | 76 | } |
77 | 77 | |
78 | 78 | $params = array( 'width' => $width ); |
79 | | - $thumb = $file->transform( $params ); |
| 79 | + # FIXME: somehow RENDER_NOW does not seem to force rendering :( |
| 80 | + $thumb = $file->transform( $params, File::RENDER_NOW ); |
80 | 81 | if ( !$thumb || $thumb->isError() ) { |
81 | 82 | $this->getOutput()->addWikiMsg( 'vipsscaler-thumb-error' ); |
| 83 | + return; |
82 | 84 | } |
83 | 85 | |
84 | | - $this->makeUrl( $file, $width ); |
| 86 | + $this->getOutput()->addHTML( |
| 87 | + $thumb->toHtml( array( |
| 88 | + # Options for the thumbnail. See ThumbnailImage::toHtml() |
| 89 | + 'desc-link' => true, |
| 90 | + ) ) |
| 91 | + ); |
85 | 92 | } |
86 | 93 | |
87 | 94 | /** |
— | — | @@ -253,13 +260,6 @@ |
254 | 261 | } |
255 | 262 | } |
256 | 263 | |
257 | | - /** |
258 | | - * |
259 | | - */ |
260 | | - protected function makeUrl( $file, $width ) { |
261 | | - |
262 | | - } |
263 | | - |
264 | 264 | protected function streamError( $code ) { |
265 | 265 | |
266 | 266 | } |