diff options
author | Pierre Schmitz <pierre@archlinux.de> | 2013-01-18 16:46:04 +0100 |
---|---|---|
committer | Pierre Schmitz <pierre@archlinux.de> | 2013-01-18 16:46:04 +0100 |
commit | 63601400e476c6cf43d985f3e7b9864681695ed4 (patch) | |
tree | f7846203a952e38aaf66989d0a4702779f549962 /maintenance/namespaceDupes.php | |
parent | 8ff01378c9e0207f9169b81966a51def645b6a51 (diff) |
Update to MediaWiki 1.20.2
this update includes:
* adjusted Arch Linux skin
* updated FluxBBAuthPlugin
* patch for https://bugzilla.wikimedia.org/show_bug.cgi?id=44024
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 { |