Replacing "$hash" with "$this->hash" - without this would result in cache class not...
authorNick Jenkins <nickj@users.mediawiki.org>
Fri, 12 Jan 2007 06:10:52 +0000 (06:10 +0000)
committerNick Jenkins <nickj@users.mediawiki.org>
Fri, 12 Jan 2007 06:10:52 +0000 (06:10 +0000)
maintenance/importPhase2.php

index b9fdf8b..3814801 100644 (file)
@@ -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];
        }
 
 }