summaryrefslogtreecommitdiff
path: root/maintenance/fixDoubleRedirects.php
diff options
context:
space:
mode:
Diffstat (limited to 'maintenance/fixDoubleRedirects.php')
-rw-r--r--maintenance/fixDoubleRedirects.php13
1 files changed, 9 insertions, 4 deletions
diff --git a/maintenance/fixDoubleRedirects.php b/maintenance/fixDoubleRedirects.php
index c1d14dd8..6f017eca 100644
--- a/maintenance/fixDoubleRedirects.php
+++ b/maintenance/fixDoubleRedirects.php
@@ -1,8 +1,8 @@
<?php
/**
- * Script to fix double redirects.
+ * Fix double redirects.
*
- * Copyright (C) 2011 Ilmari Karonen <nospam@vyznev.net>
+ * Copyright © 2011 Ilmari Karonen <nospam@vyznev.net>
* http://www.mediawiki.org/
*
* This program is free software; you can redistribute it and/or modify
@@ -25,15 +25,20 @@
* @ingroup Maintenance
*/
-require_once( dirname( __FILE__ ) . '/Maintenance.php' );
+require_once( __DIR__ . '/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() {