Index: trunk/phase3/includes/api/ApiQuerySiteinfo.php |
— | — | @@ -149,9 +149,9 @@ |
150 | 150 | } |
151 | 151 | |
152 | 152 | 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); |
156 | 156 | $data = array(); |
157 | 157 | foreach( $aliases as $title => $ns ) { |
158 | 158 | $item = array( |