diff options
Diffstat (limited to 'maintenance/namespaceDupes.php')
-rw-r--r-- | maintenance/namespaceDupes.php | 15 |
1 files changed, 11 insertions, 4 deletions
diff --git a/maintenance/namespaceDupes.php b/maintenance/namespaceDupes.php index 0a5fec33..4197a355 100644 --- a/maintenance/namespaceDupes.php +++ b/maintenance/namespaceDupes.php @@ -2,7 +2,7 @@ /** * Check for articles to fix after adding/deleting namespaces * - * Copyright (C) 2005-2007 Brion Vibber <brion@pobox.com> + * Copyright © 2005-2007 Brion Vibber <brion@pobox.com> * http://www.mediawiki.org/ * * This program is free software; you can redistribute it and/or modify @@ -20,11 +20,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' ); +require_once( __DIR__ . '/Maintenance.php' ); +/** + * Maintenance script that checks for articles to fix after + * adding/deleting namespaces. + * + * @ingroup Maintenance + */ class NamespaceConflictChecker extends Maintenance { /** @@ -257,7 +264,7 @@ class NamespaceConflictChecker extends Maintenance { $newTitle->getDBkey(), $newTitle->getPrefixedText() ) ); - $id = $newTitle->getArticleId(); + $id = $newTitle->getArticleID(); if ( $id ) { $this->output( "... *** cannot resolve automatically; page exists with ID $id ***\n" ); return false; @@ -285,7 +292,7 @@ class NamespaceConflictChecker extends Maintenance { $this->output( "... !!! invalid title\n" ); return false; } - $id = $title->getArticleId(); + $id = $title->getArticleID(); if ( $id ) { $this->output( "... *** page exists with ID $id ***\n" ); } else { |