From: Roan Kattouw Date: Sun, 7 Jun 2009 18:09:57 +0000 (+0000) Subject: API: (bug 18773) Add content flag to siprop=namespaces output X-Git-Tag: 1.31.0-rc.0~41462 X-Git-Url: http://git.cyclocoop.org/%7B%24admin_url%7Dmes_infos.php?a=commitdiff_plain;h=bb54f6c6275b6cfa18acd75b7209bf6ea59e1e5c;p=lhc%2Fweb%2Fwiklou.git API: (bug 18773) Add content flag to siprop=namespaces output --- diff --git a/RELEASE-NOTES b/RELEASE-NOTES index 2a87ccc5ac..058fa2765a 100644 --- a/RELEASE-NOTES +++ b/RELEASE-NOTES @@ -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 === diff --git a/includes/api/ApiQuerySiteinfo.php b/includes/api/ApiQuerySiteinfo.php index 02b7b662bd..d8ef4b3ef2 100644 --- a/includes/api/ApiQuerySiteinfo.php +++ b/includes/api/ApiQuerySiteinfo.php @@ -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' );