r47313 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r47312‎ | r47313 | r47314 >
Date:11:20, 16 February 2009
Author:catrope
Status:resolved
Tags:
Comment:
API: (bug 17502) meta=siteinfo&siprop=namespacealiases no longer lists namespace aliases already listed in siprop=namespaces
Modified paths:
  • /trunk/phase3/RELEASE-NOTES (modified) (history)
  • /trunk/phase3/includes/api/ApiQuerySiteinfo.php (modified) (history)

Diff [purge]

Index: trunk/phase3/includes/api/ApiQuerySiteinfo.php
@@ -168,6 +168,7 @@
169169 global $wgNamespaceAliases, $wgContLang;
170170 $wgContLang->load();
171171 $aliases = array_merge($wgNamespaceAliases, $wgContLang->namespaceAliases);
 172+ $aliases = array_diff_key($aliases, array_flip($wgContLang->getNamespaces()));
172173 $data = array();
173174 foreach( $aliases as $title => $ns ) {
174175 $item = array(
Index: trunk/phase3/RELEASE-NOTES
@@ -213,6 +213,8 @@
214214 * (bug 17433) Added bot flag to list=watchlist&wlprop=flags output
215215 * (bug 16740) Added list=protectedtitles
216216 * Added mainmodule and pagesetmodule parameters to action=paraminfo
 217+* (bug 17502) meta=siteinfo&siprop=namespacealiases no longer lists namespace
 218+ aliases already listed in siprop=namespaces
217219
218220 === Languages updated in 1.15 ===
219221

Follow-up revisions

RevisionCommit summaryAuthorDate
r47315Redo r47313 in a more readable way (probably more efficient too) by not using...catrope12:19, 16 February 2009

Status & tagging log