X-Git-Url: http://git.cyclocoop.org/%28?a=blobdiff_plain;f=maintenance%2FconvertLinks.php;h=fa9c574b562a5146dc1c14594c7aadd154312b8c;hb=74174fca253b9a759d7402f09b7fc37d5de0e9be;hp=c3ad46a012ac1494284c9aa865009d7e363b9705;hpb=19d5f55c010356ba1b29696bc566f1fc902fef4a;p=lhc%2Fweb%2Fwiklou.git diff --git a/maintenance/convertLinks.php b/maintenance/convertLinks.php index c3ad46a012..fa9c574b56 100644 --- a/maintenance/convertLinks.php +++ b/maintenance/convertLinks.php @@ -36,9 +36,9 @@ class ConvertLinks extends Maintenance { public function __construct() { parent::__construct(); - $this->mDescription = - "Convert from the old links schema (string->ID) to the new schema (ID->ID)." - . "The wiki should be put into read-only mode while this script executes"; + $this->addDescription( + 'Convert from the old links schema (string->ID) to the new schema (ID->ID). ' + . 'The wiki should be put into read-only mode while this script executes' ); $this->addArg( 'logperformance', "Log performance to perfLogFilename.", false ); $this->addArg( @@ -66,7 +66,7 @@ class ConvertLinks extends Maintenance { } public function execute() { - $dbw = wfGetDB( DB_MASTER ); + $dbw = $this->getDB( DB_MASTER ); $type = $dbw->getType(); if ( $type != 'mysql' ) { @@ -267,7 +267,7 @@ class ConvertLinks extends Maintenance { } private function createTempTable() { - $dbConn = wfGetDB( DB_MASTER ); + $dbConn = $this->getDB( DB_MASTER ); if ( !( $dbConn->isOpen() ) ) { $this->output( "Opening connection to database failed.\n" );