From: Alexandre Emsenhuber Date: Tue, 10 Jul 2012 16:50:19 +0000 (+0200) Subject: Improve documentation of maintenance scripts. X-Git-Tag: 1.31.0-rc.0~23084 X-Git-Url: http://git.cyclocoop.org//%27http:/jquery.khurshid.com/ifixpng.php/%27?a=commitdiff_plain;h=02e15ebd0ba7690bd499ab0d29a4f0d631b8a055;p=lhc%2Fweb%2Fwiklou.git Improve documentation of maintenance scripts. Change-Id: I0e2869970c46f4fd14b792f2978cc1ba9d8550be --- diff --git a/maintenance/dumpUploads.php b/maintenance/dumpUploads.php index 919bb4df93..b16b0c2929 100644 --- a/maintenance/dumpUploads.php +++ b/maintenance/dumpUploads.php @@ -1,6 +1,6 @@ + * Copyright © 2011 Ilmari Karonen * http://www.mediawiki.org/ * * This program is free software; you can redistribute it and/or modify @@ -27,13 +27,18 @@ require_once( dirname( __FILE__ ) . '/Maintenance.php' ); +/** + * Maintenance script that fixes double redirects. + * + * @ingroup Maintenance + */ class FixDoubleRedirects extends Maintenance { public function __construct() { parent::__construct(); $this->mDescription = "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' ); + $this->addOption( 'dry-run', 'Perform a dry run, fix nothing' ); } public function execute() { diff --git a/maintenance/fixExtLinksProtocolRelative.php b/maintenance/fixExtLinksProtocolRelative.php index 0cabe8160e..d247862f5f 100644 --- a/maintenance/fixExtLinksProtocolRelative.php +++ b/maintenance/fixExtLinksProtocolRelative.php @@ -19,11 +19,18 @@ * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. * http://www.gnu.org/copyleft/gpl.html * + * @file * @ingroup Maintenance */ require_once( dirname( __FILE__ ) . '/Maintenance.php' ); +/** + * Maintenance script that fixes any entriy for protocol-relative URLs + * in the externallinks table. + * + * @ingroup Maintenance + */ class FixExtLinksProtocolRelative extends LoggedUpdateMaintenance { public function __construct() { parent::__construct(); diff --git a/maintenance/fixSlaveDesync.php b/maintenance/fixSlaveDesync.php index 7731d3e3b7..de6f652137 100644 --- a/maintenance/fixSlaveDesync.php +++ b/maintenance/fixSlaveDesync.php @@ -1,5 +1,7 @@