Revert r34585: "Normalise also special page names (in addition to namespace)"
authorBrion Vibber <brion@users.mediawiki.org>
Mon, 12 May 2008 23:09:30 +0000 (23:09 +0000)
committerBrion Vibber <brion@users.mediawiki.org>
Mon, 12 May 2008 23:09:30 +0000 (23:09 +0000)
Unclear what it's meant to accomplish, but it appears to break at least the AJAX search on special page list. Unable to get it to jump through the list properly, probably due to being impossible to work with a Title object with an arbitrary name, so it's impossible to jump partway into the list.

includes/Title.php

index c7bf1da..0c4c002 100644 (file)
@@ -2180,13 +2180,6 @@ class Title {
                        return false;
                }
 
-               // Normalise special page names
-               if ( $this->mNamespace == NS_SPECIAL ) {
-                       list( $name, $subpage ) = SpecialPage::resolveAliasWithSubpage( $dbkey );
-                       $dbkey = SpecialPage::getLocalNameFor( $name, $subpage );
-               }
-
-
                # Fill fields
                $this->mDbkeyform = $dbkey;
                $this->mUrlform = wfUrlencode( $dbkey );