Index: branches/wmf/1.18wmf1/extensions/VipsScaler/SpecialVipsTest.php |
— | — | @@ -308,8 +308,10 @@ |
309 | 309 | VipsScaler::doTransform( $handler, $file, $scalerParams, $options, $mto ); |
310 | 310 | if ( $mto && !$mto->isError() ) { |
311 | 311 | wfDebug( __METHOD__ . ": streaming thumbnail...\n" ); |
| 312 | + global $IP; |
| 313 | + require_once( "$IP/includes/StreamFile.php" ); |
312 | 314 | $this->getOutput()->disable(); |
313 | | - StreamFile::stream( $dstPath, array( |
| 315 | + wfStreamFile( $dstPath, array( |
314 | 316 | "Cache-Control: public, max-age=$wgVipsTestExpiry, s-maxage=$wgVipsTestExpiry", |
315 | 317 | 'Expires: ' . gmdate( 'r ', time() + $wgVipsTestExpiry ) |
316 | 318 | ) ); |