Revert r18893/18894 (Special:Listinterwikis) for the moment; pretty broken.
authorBrion Vibber <brion@users.mediawiki.org>
Mon, 8 Jan 2007 01:41:51 +0000 (01:41 +0000)
committerBrion Vibber <brion@users.mediawiki.org>
Mon, 8 Jan 2007 01:41:51 +0000 (01:41 +0000)
- no html escaping
- ugly :)
- doesn't use alternate interwiki database so will be wrong on wikimedia sites

RELEASE-NOTES
includes/SpecialListinterwikis.php [deleted file]
includes/SpecialPage.php
languages/messages/MessagesEn.php
languages/messages/MessagesFr.php

index 564c39c..6ca5885 100644 (file)
@@ -473,7 +473,6 @@ it from source control: http://www.mediawiki.org/wiki/Download_from_SVN
 * (bug 8417) Handle EXIF unknown dates
 * (bug 8372) Return nothing on empty <math> tags.
 * New maintenance script to show the cached statistics : showStats.php.
-* New special page to list available interwikis [[Special:Listinterwikis]]
 * Count deleted edits when regenerating total edits in maintenance/initStats.php
 * (bug 3706) Allow users to be exempted from IP blocks. The ipblock-exempt permission
   key has been added to enable this behaviour, by default assigned to sysops.
diff --git a/includes/SpecialListinterwikis.php b/includes/SpecialListinterwikis.php
deleted file mode 100644 (file)
index 1c5458f..0000000
+++ /dev/null
@@ -1,42 +0,0 @@
-<?php
-/**
- * @package MediaWiki
- * @subpackage SpecialPage
- *
- * @author Ashar Voultoiz <hashar@altern.org>
- * @licence GNU General Public Licence 2.0 or later
- *
- */
-
-class ListinterwikisPage extends QueryPage {
-
-       function getName() { return( 'Listinterwikis' ); }
-       function isExpensive() { return false; }
-       function isSyndicated() { return false; }
-       function sortDescending() { return false; }
-
-       /**
-        * We have a little fun with title, namespace but its required by QueryPage.
-       */
-       function getSQL() {
-               $dbr =& wfGetDB( DB_SLAVE );
-               $iw = $dbr->tableName( 'interwiki' );
-               $sql = "SELECT 'Listinterwikis' AS type, iw_url AS title, 0 AS namespace, iw_prefix AS value, iw_local, iw_trans FROM $iw";
-               return $sql;
-       }
-
-       function formatResult( $skin, $result ) {
-               return
-                       $result->value
-                       . ' ... '
-                       . $skin->makeExternalLink($result->title, $result->title);
-       }
-}
-
-function wfSpecialListinterwikis() {
-       list( $limit, $offset ) = wfCheckLimits();
-       $lip = new ListinterwikisPage();
-       $lip->doQuery( $offset, $limit );
-}
-?>
-
index 4767626..8643875 100644 (file)
@@ -135,7 +135,6 @@ class SpecialPage
                'MIMEsearch'                => array( 'SpecialPage', 'MIMEsearch' ),
                'Unwatchedpages'            => array( 'SpecialPage', 'Unwatchedpages', 'unwatchedpages' ),
                'Listredirects'             => array( 'SpecialPage', 'Listredirects' ),
-               'Listinterwikis'            => array( 'SpecialPage', 'Listinterwikis' ),
                'Revisiondelete'            => array( 'SpecialPage', 'Revisiondelete', 'deleterevision' ),
                'Unusedtemplates'           => array( 'SpecialPage', 'Unusedtemplates' ),
                'Randomredirect'            => array( 'SpecialPage', 'Randomredirect' ),
index 9b607a1..158f267 100644 (file)
@@ -1408,9 +1408,6 @@ this old version, (rev) = revert to this old version.
 'unwatchedpages' => 'Unwatched pages',
 'unwatchedpages-summary' => '',
 
-# List interwikis
-'listinterwikis' => 'List interwikis',
-
 # List redirects
 'listredirects' => 'List redirects',
 'listredirects-summary' => '',
index f200436..daf2287 100644 (file)
@@ -772,9 +772,6 @@ cette ancienne version, (rétab) = rétablir cette ancienne version.
 #
 'unwatchedpages' => 'Pages non suivies',
 
-# List interwikis
-'listinterwikis' => 'Liste des interwikis',
-
 # List redirects
 'listredirects' => 'Liste des redirections',