r100744 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r100743‎ | r100744 | r100745 >
Date:21:24, 25 October 2011
Author:nelson
Status:deferred
Tags:
Comment:
REALLY unlink ALL temps we create this time.
Modified paths:
  • /trunk/extensions/SwiftMedia/SwiftMedia.body.php (modified) (history)

Diff [purge]

Index: trunk/extensions/SwiftMedia/SwiftMedia.body.php
@@ -107,8 +107,8 @@
108108 * @return string Path to a local copy of the file.
109109 */
110110 public function getPath() {
111 - if ( !$this->TempPaths[''] ) {
112 - $this->tempPaths[''] = $this->repo->getLocalCopy( $this->repo->container, $this->getRel(), 'getPath' );
 111+ if ( !array_key_exists('', $this->tempPaths ) ) {
 112+ $this->tempPaths[''] = $this->repo->getLocalCopy( $this->repo->container, $this->getRel(), "getPath_" );
113113 }
114114 return $this->tempPaths[''];
115115 }

Status & tagging log