Merge "Fix a bunch of call-time pass-by-reference errors"
[lhc/web/wiklou.git] / maintenance / fixUserRegistration.php
index 40e0915..44ac220 100644 (file)
@@ -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 {