r112260 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r112259‎ | r112260 | r112261 >
Date:23:08, 23 February 2012
Author:aaron
Status:ok
Tags:
Comment:
Use getLocalRefPath() for shell scripts that need a source file
Modified paths:
  • /trunk/extensions/OggHandler/OggHandler_body.php (modified) (history)

Diff [purge]

Index: trunk/extensions/OggHandler/OggHandler_body.php
@@ -261,9 +261,9 @@
262262
263263 global $wgOggThumbLocation;
264264 if ( $wgOggThumbLocation !== false ) {
265 - $status = $this->runOggThumb( $file->getPath(), $dstPath, $thumbTime );
 265+ $status = $this->runOggThumb( $file->getLocalRefPath(), $dstPath, $thumbTime );
266266 } else {
267 - $status = $this->runFFmpeg( $file->getPath(), $dstPath, $thumbTime );
 267+ $status = $this->runFFmpeg( $file->getLocalRefPath(), $dstPath, $thumbTime );
268268 }
269269 if ( $status === true ) {
270270 return new OggVideoDisplay( $file, $file->getURL(), $dstUrl, $width, $height,

Follow-up revisions

RevisionCommit summaryAuthorDate
r112264MFT r112260aaron23:11, 23 February 2012
r113049MFT r112229, r112248, r112253, r112260, r112758reedy17:46, 5 March 2012

Status & tagging log