r49034 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r49033‎ | r49034 | r49035 >
Date:13:28, 30 March 2009
Author:catrope
Status:ok
Tags:
Comment:
(bug 18256) Fix typo: array_diff_key, not keyS
Modified paths:
  • /trunk/phase3/includes/filerepo/FileCache.php (modified) (history)

Diff [purge]

Index: trunk/phase3/includes/filerepo/FileCache.php
@@ -69,8 +69,8 @@
7070 */
7171 function clearFiles( $remove ) {
7272 wfDebug( "FileCache clearing data for ".count( $remove )." files\n" );
73 - $this->cache = array_diff_keys( $this->cache, $remove );
74 - $this->notFound = array_diff_keys( $this->notFound, $remove );
 73+ $this->cache = array_diff_key( $this->cache, $remove );
 74+ $this->notFound = array_diff_key( $this->notFound, $remove );
7575 }
7676
7777 /**
@@ -80,7 +80,7 @@
8181 */
8282 function markNotFound( $dbkeys ) {
8383 wfDebug( "FileCache marking ".count( $dbkeys )." files as not found\n" );
84 - $this->notFound += array_fill_keys( $dbkeys, true );
 84+ $this->notFound += array_fill_key( $dbkeys, true );
8585 }
8686
8787

Status & tagging log