r110123 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r110122‎ | r110123 | r110124 >
Date:14:29, 27 January 2012
Author:reedy
Status:ok
Tags:filebackend 
Comment:
$this->substPaths takes 2 parameters

protected function substPaths( $paths, FileBackend $backend ) {

Pass $backend from the for loop
Modified paths:
  • /trunk/phase3/includes/filerepo/backend/FileBackendMultiWrite.php (modified) (history)

Diff [purge]

Index: trunk/phase3/includes/filerepo/backend/FileBackendMultiWrite.php
@@ -392,7 +392,7 @@
393393 */
394394 public function clearCache( array $paths = null ) {
395395 foreach ( $this->backends as $backend ) {
396 - $realPaths = is_array( $paths ) ? $this->substPaths( $paths ) : null;
 396+ $realPaths = is_array( $paths ) ? $this->substPaths( $paths, $backend ) : null;
397397 $backend->clearCache( $realPaths );
398398 }
399399 }

Status & tagging log