diff options
Diffstat (limited to 'maintenance/orphans.php')
-rw-r--r-- | maintenance/orphans.php | 17 |
1 files changed, 12 insertions, 5 deletions
diff --git a/maintenance/orphans.php b/maintenance/orphans.php index faaadd37..78f98f5a 100644 --- a/maintenance/orphans.php +++ b/maintenance/orphans.php @@ -1,11 +1,11 @@ <?php /** - * Look for 'orphan' revisions hooked to pages which don't exist - * And 'childless' pages with no revisions. + * Look for 'orphan' revisions hooked to pages which don't exist and + * 'childless' pages with no revisions. * Then, kill the poor widows and orphans. * Man this is depressing. * - * Copyright (C) 2005 Brion Vibber <brion@pobox.com> + * Copyright © 2005 Brion Vibber <brion@pobox.com> * http://www.mediawiki.org/ * * This program is free software; you can redistribute it and/or modify @@ -23,17 +23,24 @@ * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. * http://www.gnu.org/copyleft/gpl.html * + * @file * @author <brion@pobox.com> * @ingroup Maintenance */ -require_once( dirname( __FILE__ ) . '/Maintenance.php' ); +require_once( __DIR__ . '/Maintenance.php' ); +/** + * Maintenance script that looks for 'orphan' revisions hooked to pages which + * don't exist and 'childless' pages with no revisions. + * + * @ingroup Maintenance + */ class Orphans extends Maintenance { public function __construct() { parent::__construct(); $this->mDescription = "Look for 'orphan' revisions hooked to pages which don't exist\n" . - "And 'childless' pages with no revisions\n" . + "and 'childless' pages with no revisions\n" . "Then, kill the poor widows and orphans\n" . "Man this is depressing"; $this->addOption( 'fix', 'Actually fix broken entries' ); |