class FixDoubleRedirects extends Maintenance {
public function __construct() {
parent::__construct();
- $this->mDescription = "Script to fix double redirects";
+ $this->addDescription( 'Script to fix double redirects' );
$this->addOption( 'async', 'Don\'t fix anything directly, just queue the jobs' );
$this->addOption( 'title', 'Fix only redirects pointing to this page', false, true );
$this->addOption( 'dry-run', 'Perform a dry run, fix nothing' );
$title = null;
}
- $dbr = wfGetDB( DB_SLAVE );
+ $dbr = $this->getDB( DB_SLAVE );
// See also SpecialDoubleRedirects
$tables = array(