From: Brion Vibber Date: Mon, 12 May 2008 23:09:30 +0000 (+0000) Subject: Revert r34585: "Normalise also special page names (in addition to namespace)" X-Git-Tag: 1.31.0-rc.0~47689 X-Git-Url: https://git.cyclocoop.org/%28%28?a=commitdiff_plain;h=651eff1627871b4b92a44b741b0d0e35be34b9af;p=lhc%2Fweb%2Fwiklou.git Revert r34585: "Normalise also special page names (in addition to namespace)" 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. --- diff --git a/includes/Title.php b/includes/Title.php index c7bf1dab3f..0c4c002eee 100644 --- a/includes/Title.php +++ b/includes/Title.php @@ -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 );