X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=maintenance%2FupdateRestrictions.php;h=98d9389f9f4f21e784478b041c55f0d00b48e2b1;hb=cf9fc81e9669b6c016c044de57ad2bdd5113d167;hp=5b5cc04895575c677fed777d17ae1c64da4dbd90;hpb=06db1a2335826d7da5da2a47ddec44a08094376d;p=lhc%2Fweb%2Fwiklou.git diff --git a/maintenance/updateRestrictions.php b/maintenance/updateRestrictions.php index 5b5cc04895..98d9389f9f 100644 --- a/maintenance/updateRestrictions.php +++ b/maintenance/updateRestrictions.php @@ -35,12 +35,12 @@ require_once __DIR__ . '/Maintenance.php'; class UpdateRestrictions extends Maintenance { public function __construct() { parent::__construct(); - $this->mDescription = "Updates page_restrictions table from old page_restriction column"; + $this->addDescription( 'Updates page_restrictions table from old page_restriction column' ); $this->setBatchSize( 100 ); } public function execute() { - $db = wfGetDB( DB_MASTER ); + $db = $this->getDB( DB_MASTER ); if ( !$db->tableExists( 'page_restrictions' ) ) { $this->error( "page_restrictions table does not exist", true ); }