r34585 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r34584‎ | r34585 | r34586 >
Date:15:14, 10 May 2008
Author:nikerabbit
Status:old
Tags:
Comment:
* Normalise also special page names (in addition to namespace)
Modified paths:
  • /trunk/phase3/includes/Title.php (modified) (history)

Diff [purge]

Index: trunk/phase3/includes/Title.php
@@ -2179,6 +2179,13 @@
21802180 return false;
21812181 }
21822182
 2183+ // Normalise special page names
 2184+ if ( $this->mNamespace == NS_SPECIAL ) {
 2185+ list( $name, $subpage ) = SpecialPage::resolveAliasWithSubpage( $dbkey );
 2186+ $dbkey = SpecialPage::getLocalNameFor( $name, $subpage );
 2187+ }
 2188+
 2189+
21832190 # Fill fields
21842191 $this->mDbkeyform = $dbkey;
21852192 $this->mUrlform = wfUrlencode( $dbkey );

Follow-up revisions

RevisionCommit summaryAuthorDate
r34696Revert r34585: "Normalise also special page names (in addition to namespace)"...brion23:09, 12 May 2008

Status & tagging log