$this->substPaths takes 2 parameters
authorSam Reed <reedy@users.mediawiki.org>
Fri, 27 Jan 2012 14:29:29 +0000 (14:29 +0000)
committerSam Reed <reedy@users.mediawiki.org>
Fri, 27 Jan 2012 14:29:29 +0000 (14:29 +0000)
protected function substPaths( $paths, FileBackend $backend ) {

Pass $backend from the for loop

includes/filerepo/backend/FileBackendMultiWrite.php

index 44a07be..9568207 100644 (file)
@@ -392,7 +392,7 @@ class FileBackendMultiWrite extends FileBackendBase {
         */
        public function clearCache( array $paths = null ) {
                foreach ( $this->backends as $backend ) {
-                       $realPaths = is_array( $paths ) ? $this->substPaths( $paths ) : null;
+                       $realPaths = is_array( $paths ) ? $this->substPaths( $paths, $backend ) : null;
                        $backend->clearCache( $realPaths );
                }
        }