r106739 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r106738‎ | r106739 | r106740 >
Date:00:25, 20 December 2011
Author:aaron
Status:ok
Tags:
Comment:
Updated stream file calls :)
Modified paths:
  • /branches/FileBackend/phase3/includes/specials/SpecialRevisiondelete.php (modified) (history)
  • /branches/FileBackend/phase3/includes/specials/SpecialUndelete.php (modified) (history)

Diff [purge]

Index: branches/FileBackend/phase3/includes/specials/SpecialUndelete.php
@@ -996,7 +996,7 @@
997997
998998 $repo = RepoGroup::singleton()->getLocalRepo();
999999 $path = $repo->getZonePath( 'deleted' ) . '/' . $repo->getDeletedHashPath( $key ) . $key;
1000 - StreamFile::stream( $path );
 1000+ $repo->streamFile( $path );
10011001 }
10021002
10031003 private function showHistory() {
Index: branches/FileBackend/phase3/includes/specials/SpecialRevisiondelete.php
@@ -313,7 +313,7 @@
314314
315315 $key = $oimage->getStorageKey();
316316 $path = $repo->getZonePath( 'deleted' ) . '/' . $repo->getDeletedHashPath( $key ) . $key;
317 - StreamFile::stream( $path );
 317+ $repo->streamFile( $path );
318318 }
319319
320320 /**

Status & tagging log