public function __construct() {
parent::__construct();
- $this->mDescription = "Cleanup user blocks with user names not matching the 'user' table";
+ $this->addDescription( "Cleanup user blocks with user names not matching the 'user' table" );
$this->setBatchSize( 1000 );
}
public function execute() {
- $db = wfGetDB( DB_MASTER );
+ $db = $this->getDB( DB_MASTER );
$max = $db->selectField( 'ipblocks', 'MAX(ipb_user)' );