API: (bug 18773) Add content flag to siprop=namespaces output
authorRoan Kattouw <catrope@users.mediawiki.org>
Sun, 7 Jun 2009 18:09:57 +0000 (18:09 +0000)
committerRoan Kattouw <catrope@users.mediawiki.org>
Sun, 7 Jun 2009 18:09:57 +0000 (18:09 +0000)
RELEASE-NOTES
includes/api/ApiQuerySiteinfo.php

index 2a87ccc..058fa27 100644 (file)
@@ -203,6 +203,7 @@ it from source control: http://www.mediawiki.org/wiki/Download_from_SVN
 * (bug 18749) Add generator flag to action=paraminfo output
 * Make action=block respect $wgEnableUserEmail and $wgSysopEmailBans
 * Made deleting file description pages without files possible
+* (bug 18773) Add content flag to siprop=namespaces output
 
 === Languages updated in 1.16 ===
 
index 02b7b66..d8ef4b3 100644 (file)
@@ -171,6 +171,9 @@ class ApiQuerySiteinfo extends ApiQueryBase {
                        
                        if( $canonical ) 
                                $data[$ns]['canonical'] = strtr($canonical, '_', ' ');
+                       
+                       if( MWNamespace::isContent( $ns ) )
+                               $data[$ns]['content'] = '';
                }
 
                $this->getResult()->setIndexedTagName( $data, 'ns' );