Followup to r46648 and fix for bug 17267: when expanding $1 in namespace aliases...
authorRoan Kattouw <catrope@users.mediawiki.org>
Sat, 31 Jan 2009 20:12:27 +0000 (20:12 +0000)
committerRoan Kattouw <catrope@users.mediawiki.org>
Sat, 31 Jan 2009 20:12:27 +0000 (20:12 +0000)
languages/Language.php

index d9874fe..164057a 100644 (file)
@@ -2584,7 +2584,9 @@ class Language {
                if ( $this->namespaceAliases ) {
                        foreach ( $this->namespaceAliases as $name => $index ) {
                                if ( $index === NS_PROJECT_TALK ) {
+                                       unset( $this->namespaceAliases[$name] );
                                        $name = $this->fixVariableInNamespace( $name );
+                                       $this->namespaceAliases[$name] = $index;
                                }
                                $this->mNamespaceIds[$this->lc($name)] = $index;
                        }