X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=maintenance%2FdeleteSelfExternals.php;h=ed15fd13b34218b00e33b90c5b87fac2f0a91024;hb=2c4185b3217a78c8857c4b593f2a8c85a46ea6d4;hp=a3976634f3572e958517c4adb729d2445595b7fe;hpb=d6668812dc888e84aa54024558ecaf1cc95ee340;p=lhc%2Fweb%2Fwiklou.git diff --git a/maintenance/deleteSelfExternals.php b/maintenance/deleteSelfExternals.php index a3976634f3..ed15fd13b3 100644 --- a/maintenance/deleteSelfExternals.php +++ b/maintenance/deleteSelfExternals.php @@ -32,14 +32,14 @@ require_once __DIR__ . '/Maintenance.php'; class DeleteSelfExternals extends Maintenance { public function __construct() { parent::__construct(); - $this->mDescription = 'Delete self-references to $wgServer from externallinks'; + $this->addDescription( 'Delete self-references to $wgServer from externallinks' ); $this->mBatchSize = 1000; } public function execute() { global $wgServer; $this->output( "Deleting self externals from $wgServer\n" ); - $db = wfGetDB( DB_MASTER ); + $db = $this->getDB( DB_MASTER ); while ( 1 ) { wfWaitForSlaves(); $this->commitTransaction( $db, __METHOD__ );