r44862 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r44861‎ | r44862 | r44863 >
Date:23:49, 20 December 2008
Author:catrope
Status:ok
Tags:
Comment:
Fix up r44860, use $wgContLang instead.
Modified paths:
  • /trunk/phase3/includes/api/ApiQuerySiteinfo.php (modified) (history)

Diff [purge]

Index: trunk/phase3/includes/api/ApiQuerySiteinfo.php
@@ -149,9 +149,9 @@
150150 }
151151
152152 protected function appendNamespaceAliases( $property ) {
153 - global $wgNamespaceAliases, $wgLang;
154 - $wgLang->load();
155 - $aliases = array_merge($wgNamespaceAliases, $wgLang->namespaceAliases);
 153+ global $wgNamespaceAliases, $wgContLang;
 154+ $wgContLang->load();
 155+ $aliases = array_merge($wgNamespaceAliases, $wgContLang->namespaceAliases);
156156 $data = array();
157157 foreach( $aliases as $title => $ns ) {
158158 $item = array(

Past revisions this follows-up on

RevisionCommit summaryAuthorDate
r44860API: (bug 16726) siprop=namespacealiases should also list localized aliasescatrope23:20, 20 December 2008

Status & tagging log