Get rid of php4ism
authorChad Horohoe <demon@users.mediawiki.org>
Sun, 19 Sep 2010 17:42:15 +0000 (17:42 +0000)
committerChad Horohoe <demon@users.mediawiki.org>
Sun, 19 Sep 2010 17:42:15 +0000 (17:42 +0000)
maintenance/refreshLinks.php

index 0083bb6..96e87a2 100644 (file)
@@ -196,8 +196,7 @@ class RefreshLinks extends Maintenance {
                $wgTitle = Title::newFromID( $id );
                $dbw = wfGetDB( DB_MASTER );
 
-               $linkCache =& LinkCache::singleton();
-               $linkCache->clear();
+               LinkCache::singleton()->clear();
 
                if ( is_null( $wgTitle ) ) {
                        return;