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 {