From: Roan Kattouw Date: Sat, 31 Jan 2009 20:12:27 +0000 (+0000) Subject: Followup to r46648 and fix for bug 17267: when expanding $1 in namespace aliases... X-Git-Tag: 1.31.0-rc.0~43094 X-Git-Url: http://git.cyclocoop.org/%24href?a=commitdiff_plain;h=e2b5d54af3442fdaec9fe2b579636571084777c0;p=lhc%2Fweb%2Fwiklou.git Followup to r46648 and fix for bug 17267: when expanding $1 in namespace aliases, actually store the 'new' alias back in the $wgContLang->namespaceAliases array --- diff --git a/languages/Language.php b/languages/Language.php index d9874feb74..164057a357 100644 --- a/languages/Language.php +++ b/languages/Language.php @@ -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; }