Recentchanges optimization: avoid a lot of senseless parsing of link text coming...
[lhc/web/wiklou.git] / maintenance / rebuildInterwiki.inc
index ba4ca3e..e102bb0 100644 (file)
@@ -1,12 +1,24 @@
-<?
-
-# Rebuild interwiki table using the file on meta and the language list
-# Wikimedia specific!
+<?php
+/**
+ * Rebuild interwiki table using the file on meta and the language list
+ * Wikimedia specific!
+ *
+ * @todo document
+ * @package MediaWiki
+ * @subpackage Maintenance
+ */
+
+/** */
 $oldCwd = getcwd();
 
 $optionsWithArgs = array( "o" );
 include_once( "commandLine.inc" );
 
+/**
+ * @todo document
+ * @package MediaWiki
+ * @subpackage Maintenance
+ */
 class Site {
        var $suffix, $lateral, $url;
 
@@ -68,7 +80,7 @@ function getRebuildInterwikiSQL() {
 
        # Extract the intermap from meta
        $dbr =& wfGetDB( DB_WRITE );
-       $row = $dbr->getArray( "metawiki.cur", array( "cur_text" ), 
+       $row = $dbr->selectRow( "metawiki.cur", array( "cur_text" ), 
                array( "cur_namespace" => 0, "cur_title" => "Interwiki_map" ) );
 
        if ( !$row ) {