From bb54f6c6275b6cfa18acd75b7209bf6ea59e1e5c Mon Sep 17 00:00:00 2001 From: Roan Kattouw Date: Sun, 7 Jun 2009 18:09:57 +0000 Subject: [PATCH] API: (bug 18773) Add content flag to siprop=namespaces output --- RELEASE-NOTES | 1 + includes/api/ApiQuerySiteinfo.php | 3 +++ 2 files changed, 4 insertions(+) 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' ); -- 2.20.1