From 6a8cb1a512aea70837c6e250cb975c7775c52905 Mon Sep 17 00:00:00 2001 From: Roan Kattouw Date: Mon, 30 Mar 2009 13:28:03 +0000 Subject: [PATCH] (bug 18256) Fix typo: array_diff_key, not keyS --- includes/filerepo/FileCache.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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 ); } -- 2.20.1