Fix syntax error
[lhc/web/wiklou.git] / maintenance / convertLinks.inc
index b63a9cf..e4deb22 100644 (file)
@@ -1,8 +1,8 @@
 <?php
 /**
+ * @file
  * @todo document
- * @package MediaWiki
- * @subpackage Maintenance
+ * @ingroup Maintenance
  */
 
 /** */
@@ -43,7 +43,7 @@ function convertLinks() {
        $perfLogFilename = "convLinksPerf.txt";
        #--------------------------------------------------------------------
 
-       $dbw =& wfGetDB( DB_MASTER );
+       $dbw = wfGetDB( DB_MASTER );
        list ($cur, $links, $links_temp, $links_backup) = $dbw->tableNamesN( 'cur', 'links', 'links_temp', 'links_backup' );
 
        $res = $dbw->query( "SELECT l_from FROM $links LIMIT 1" );
@@ -214,7 +214,3 @@ function getMicroTime() { # return time in seconds, with microsecond accuracy
        list($usec, $sec) = explode(" ", microtime());
        return ((float)$usec + (float)$sec);
 }
-
-
-
-?>