Remove maintenance script dumpSisterSites.php
authorKevin Israel <pleasestand@live.com>
Fri, 20 Feb 2015 02:41:44 +0000 (21:41 -0500)
committerKevin Israel <pleasestand@live.com>
Fri, 20 Feb 2015 15:09:53 +0000 (10:09 -0500)
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
autoload.php
maintenance/dumpSisterSites.php [deleted file]

index df13daa..cdef220 100644 (file)
@@ -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 ==
 
index 4131c71..a115e75 100644 (file)
@@ -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 (file)
index 784dc7a..0000000
+++ /dev/null
@@ -1,62 +0,0 @@
-<?php
-/**
- * Quickie page name dump script for SisterSites usage.
- * http://www.eekim.com/cgi-bin/wiki.pl?SisterSites
- *
- * Copyright © 2006 Brion Vibber <brion@pobox.com>
- * 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;