r104395 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r104394‎ | r104395 | r104396 >
Date:05:49, 28 November 2011
Author:tstarling
Status:ok
Tags:
Comment:
Need to use wfStreamFile() in 1.18, there's no StreamFile
Modified paths:
  • /branches/wmf/1.18wmf1/extensions/VipsScaler/SpecialVipsTest.php (modified) (history)

Diff [purge]

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

Status & tagging log