X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=maintenance%2FfixExtLinksProtocolRelative.php;h=d04e0c25a54153e1f092ce2ffed36215acb22dd9;hb=cf9fc81e9669b6c016c044de57ad2bdd5113d167;hp=0c60e62c702e2477ff55fae64634e1bb38a4eecd;hpb=280cb03b4d87e864a723686daf5d1699b3566ec1;p=lhc%2Fweb%2Fwiklou.git diff --git a/maintenance/fixExtLinksProtocolRelative.php b/maintenance/fixExtLinksProtocolRelative.php index 0c60e62c70..d04e0c25a5 100644 --- a/maintenance/fixExtLinksProtocolRelative.php +++ b/maintenance/fixExtLinksProtocolRelative.php @@ -34,8 +34,8 @@ require_once __DIR__ . '/Maintenance.php'; 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() { @@ -47,7 +47,7 @@ class FixExtLinksProtocolRelative extends LoggedUpdateMaintenance { } protected function doDBUpdates() { - $db = wfGetDB( DB_MASTER ); + $db = $this->getDB( DB_MASTER ); if ( !$db->tableExists( 'externallinks' ) ) { $this->error( "externallinks table does not exist" );