From: Platonides Date: Sat, 21 Aug 2010 22:11:19 +0000 (+0000) Subject: Follow up r71359. $wgDBtype uneeded now. X-Git-Tag: 1.31.0-rc.0~35393 X-Git-Url: http://git.cyclocoop.org//%27http:/code.google.com/p/ie7-js//%27?a=commitdiff_plain;h=e819779400cb435b68af78542f2d4041acdb0e0a;p=lhc%2Fweb%2Fwiklou.git Follow up r71359. $wgDBtype uneeded now. --- diff --git a/maintenance/convertLinks.php b/maintenance/convertLinks.php index 0edfa131d9..e792319dda 100644 --- a/maintenance/convertLinks.php +++ b/maintenance/convertLinks.php @@ -36,8 +36,6 @@ The wiki should be put into read-only mode while this script executes"; } public function execute() { - global $wgDBtype; - $dbw = wfGetDB( DB_MASTER ); $type = $dbw->getType(); @@ -124,7 +122,8 @@ The wiki should be put into read-only mode while this script executes"; $dbw->bufferResults( true ); $this->output( "Finished loading IDs.\n\n" ); $this->performanceLog( "Took " . ( $this->getMicroTime() - $baseTime ) . " seconds to load IDs.\n\n" ); - # -------------------------------------------------------------------- + + # -------------------------------------------------------------------- # Now, step through the links table (in chunks of $linksConvInsertInterval rows), # convert, and write to the new table.