class FixExtLinksProtocolRelative extends LoggedUpdateMaintenance {
public function __construct() {
parent::__construct();
- $this->mDescription =
- "Fixes any entries in the externallinks table containing protocol-relative URLs";
+ $this->addDescription(
+ 'Fixes any entries in the externallinks table containing protocol-relative URLs' );
}
protected function getUpdateKey() {
}
protected function doDBUpdates() {
- $db = wfGetDB( DB_MASTER );
+ $db = $this->getDB( DB_MASTER );
if ( !$db->tableExists( 'externallinks' ) ) {
$this->error( "externallinks table does not exist" );