X-Git-Url: http://git.cyclocoop.org/?a=blobdiff_plain;f=maintenance%2FfixUserRegistration.php;h=44ac220a37e6d46a60945572b11b042067e1eec8;hb=b92b92acfcefcaf17ad82332e67209a7d02c0152;hp=40e091595e482de345050a5fab2b316311fcf973;hpb=fbcb3d5f980a9be0611424764d6f18e749e4c1c9;p=lhc%2Fweb%2Fwiklou.git diff --git a/maintenance/fixUserRegistration.php b/maintenance/fixUserRegistration.php index 40e091595e..44ac220a37 100644 --- a/maintenance/fixUserRegistration.php +++ b/maintenance/fixUserRegistration.php @@ -32,12 +32,12 @@ require_once __DIR__ . '/Maintenance.php'; class FixUserRegistration extends Maintenance { public function __construct() { parent::__construct(); - $this->mDescription = "Fix the user_registration field"; + $this->addDescription( 'Fix the user_registration field' ); $this->setBatchSize( 1000 ); } public function execute() { - $dbw = wfGetDB( DB_MASTER ); + $dbw = $this->getDB( DB_MASTER ); $lastId = 0; do {