public function __construct() {
parent::__construct();
- $this->mDescription = "";
+ $this->addDescription( 'Find and fix pages affected by namespace addition/removal' );
$this->addOption( 'fix', 'Attempt to automatically fix errors' );
$this->addOption( 'merge', "Instead of renaming conflicts, do a history merge with " .
"the correct title" );
}
public function execute() {
- $this->db = wfGetDB( DB_MASTER );
+ $this->db = $this->getDB( DB_MASTER );
$options = array(
'fix' => $this->hasOption( 'fix' ),