From ec314922b560143f593f70d0f2361d51f306ed67 Mon Sep 17 00:00:00 2001 From: Kevin Israel Date: Thu, 19 Feb 2015 21:41:44 -0500 Subject: [PATCH] Remove maintenance script dumpSisterSites.php This script would perhaps better belong in the SisterSites extension, as noted on the extension's MW.org description page. However, that extension was never actually developed to a usable state (first commit was r16390, no substantial changes since) or imported into Git, so apparently the feature (or at least its implementation) is of only limited, possibly historical interest. Change-Id: Ia4c3b0316815f06b7e82f013edfd1798ed07d9a3 --- RELEASE-NOTES-1.25 | 1 + autoload.php | 1 - maintenance/dumpSisterSites.php | 62 --------------------------------- 3 files changed, 1 insertion(+), 63 deletions(-) delete mode 100644 maintenance/dumpSisterSites.php diff --git a/RELEASE-NOTES-1.25 b/RELEASE-NOTES-1.25 index df13daab30..cdef2205e1 100644 --- a/RELEASE-NOTES-1.25 +++ b/RELEASE-NOTES-1.25 @@ -362,6 +362,7 @@ changes to languages because of Bugzilla reports. The alphabet of the prior string returned was A-Za-z0-9 and now it is 0-9A-F * (T87504) Avoid serving SVG background-images in CSS for Opera 12, which renders them incorrectly when combined with border-radius or background-size. +* Removed maintenance script dumpSisterSites.php. == Compatibility == diff --git a/autoload.php b/autoload.php index 4131c714cb..a115e758b0 100644 --- a/autoload.php +++ b/autoload.php @@ -354,7 +354,6 @@ $wgAutoloadLocalClasses = array( 'DumpPipeOutput' => __DIR__ . '/includes/Export.php', 'DumpRenderer' => __DIR__ . '/maintenance/renderDump.php', 'DumpRev' => __DIR__ . '/maintenance/storage/dumpRev.php', - 'DumpSisterSites' => __DIR__ . '/maintenance/dumpSisterSites.php', 'DuplicateJob' => __DIR__ . '/includes/jobqueue/jobs/DuplicateJob.php', 'EditAction' => __DIR__ . '/includes/actions/EditAction.php', 'EditCLI' => __DIR__ . '/maintenance/edit.php', diff --git a/maintenance/dumpSisterSites.php b/maintenance/dumpSisterSites.php deleted file mode 100644 index 784dc7a887..0000000000 --- a/maintenance/dumpSisterSites.php +++ /dev/null @@ -1,62 +0,0 @@ - - * https://www.mediawiki.org/ - * - * This program is free software; you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation; either version 2 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License along - * with this program; if not, write to the Free Software Foundation, Inc., - * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. - * http://www.gnu.org/copyleft/gpl.html - * - * @file - * @ingroup Maintenance - */ - -require_once __DIR__ . '/Maintenance.php'; - -/** - * Maintenance script that generates a page name dump for SisterSites usage. - * - * @ingroup Maintenance - */ -class DumpSisterSites extends Maintenance { - public function __construct() { - parent::__construct(); - $this->mDescription = "Quickie page name dump script for SisterSites usage"; - } - - public function execute() { - $dbr = wfGetDB( DB_SLAVE ); - $dbr->bufferResults( false ); - $result = $dbr->select( 'page', - array( 'page_namespace', 'page_title' ), - array( - 'page_namespace' => NS_MAIN, - 'page_is_redirect' => 0, - ), - __METHOD__ ); - - foreach ( $result as $row ) { - $title = Title::makeTitle( $row->page_namespace, $row->page_title ); - $url = $title->getFullURL(); - $text = $title->getPrefixedText(); - $this->output( "$url $text\n" ); - } - } -} - -$maintClass = "DumpSisterSites"; -require_once RUN_MAINTENANCE_IF_MAIN; -- 2.20.1