From: Roan Kattouw Date: Mon, 30 Mar 2009 13:28:03 +0000 (+0000) Subject: (bug 18256) Fix typo: array_diff_key, not keyS X-Git-Tag: 1.31.0-rc.0~42271 X-Git-Url: http://git.cyclocoop.org/%22.%24h.%22?a=commitdiff_plain;h=6a8cb1a512aea70837c6e250cb975c7775c52905;p=lhc%2Fweb%2Fwiklou.git (bug 18256) Fix typo: array_diff_key, not keyS --- diff --git a/includes/filerepo/FileCache.php b/includes/filerepo/FileCache.php index 328cd11f46..e7f254e395 100644 --- a/includes/filerepo/FileCache.php +++ b/includes/filerepo/FileCache.php @@ -69,8 +69,8 @@ class FileCache { */ function clearFiles( $remove ) { wfDebug( "FileCache clearing data for ".count( $remove )." files\n" ); - $this->cache = array_diff_keys( $this->cache, $remove ); - $this->notFound = array_diff_keys( $this->notFound, $remove ); + $this->cache = array_diff_key( $this->cache, $remove ); + $this->notFound = array_diff_key( $this->notFound, $remove ); } /** @@ -80,7 +80,7 @@ class FileCache { */ function markNotFound( $dbkeys ) { wfDebug( "FileCache marking ".count( $dbkeys )." files as not found\n" ); - $this->notFound += array_fill_keys( $dbkeys, true ); + $this->notFound += array_fill_key( $dbkeys, true ); }