From: Nick Jenkins Date: Fri, 12 Jan 2007 06:10:52 +0000 (+0000) Subject: Replacing "$hash" with "$this->hash" - without this would result in cache class not... X-Git-Tag: 1.31.0-rc.0~54475 X-Git-Url: https://git.cyclocoop.org/%7B%24admin_url%7Dmembres/modifier.php?a=commitdiff_plain;h=af5ff73507e8a55802227f7daac8e6aeaaa022c9;p=lhc%2Fweb%2Fwiklou.git Replacing "$hash" with "$this->hash" - without this would result in cache class not caching anything. --- diff --git a/maintenance/importPhase2.php b/maintenance/importPhase2.php index b9fdf8b20d..3814801cfe 100644 --- a/maintenance/importPhase2.php +++ b/maintenance/importPhase2.php @@ -332,10 +332,10 @@ class TitleCache { var $hash = array(); function &fetch( $dbkey ) { - if( !isset( $hash[$dbkey] ) ) { - $hash[$dbkey] = Title::newFromDBkey( $dbkey ); + if( !isset( $this->hash[$dbkey] ) ) { + $this->hash[$dbkey] = Title::newFromDBkey( $dbkey ); } - return $hash[$dbkey]; + return $this->hash[$dbkey]; } }