* Normalise also special page names (in addition to namespace)
authorNiklas Laxström <nikerabbit@users.mediawiki.org>
Sat, 10 May 2008 15:14:39 +0000 (15:14 +0000)
committerNiklas Laxström <nikerabbit@users.mediawiki.org>
Sat, 10 May 2008 15:14:39 +0000 (15:14 +0000)
includes/Title.php

index 9dc3b4e..0c31074 100644 (file)
@@ -2179,6 +2179,13 @@ 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 );