Merge "New hook for filters on Special:Contributions form"
[lhc/web/wiklou.git] / maintenance / checkUsernames.php
index a64bc49..1b9a1cc 100644 (file)
@@ -35,12 +35,12 @@ class CheckUsernames extends Maintenance {
 
        public function __construct() {
                parent::__construct();
-               $this->mDescription = "Verify that database usernames are actually valid";
+               $this->addDescription( 'Verify that database usernames are actually valid' );
                $this->setBatchSize( 1000 );
        }
 
        function execute() {
-               $dbr = wfGetDB( DB_SLAVE );
+               $dbr = $this->getDB( DB_SLAVE );
 
                $maxUserId = 0;
                do {