From: Sam Reed Date: Fri, 27 Jan 2012 14:29:29 +0000 (+0000) Subject: $this->substPaths takes 2 parameters X-Git-Tag: 1.31.0-rc.0~25062 X-Git-Url: https://git.cyclocoop.org/%28%28?a=commitdiff_plain;h=d74e52c052dd57009e5d730b33baf7365048ff95;p=lhc%2Fweb%2Fwiklou.git $this->substPaths takes 2 parameters protected function substPaths( $paths, FileBackend $backend ) { Pass $backend from the for loop --- 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 ); } }