From d74e52c052dd57009e5d730b33baf7365048ff95 Mon Sep 17 00:00:00 2001 From: Sam Reed Date: Fri, 27 Jan 2012 14:29:29 +0000 Subject: [PATCH] $this->substPaths takes 2 parameters protected function substPaths( $paths, FileBackend $backend ) { Pass $backend from the for loop --- includes/filerepo/backend/FileBackendMultiWrite.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/filerepo/backend/FileBackendMultiWrite.php b/includes/filerepo/backend/FileBackendMultiWrite.php index 44a07bef6a..956820755e 100644 --- a/includes/filerepo/backend/FileBackendMultiWrite.php +++ b/includes/filerepo/backend/FileBackendMultiWrite.php @@ -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 ); } } -- 2.20.1