From 2e5e8808b44c63d5b55931a1028e55747244f711 Mon Sep 17 00:00:00 2001 From: Roan Kattouw Date: Sat, 24 Jan 2009 13:16:24 +0000 Subject: [PATCH] API: (bug 17024) Added legaltitlechars field to meta=siteinfo&siprop=general output, which contains the value of $wgLegalTitleChars --- RELEASE-NOTES | 1 + includes/api/ApiQuerySiteinfo.php | 2 ++ 2 files changed, 3 insertions(+) diff --git a/RELEASE-NOTES b/RELEASE-NOTES index e8b8ce3c2b..b1ac48c90c 100644 --- a/RELEASE-NOTES +++ b/RELEASE-NOTES @@ -90,6 +90,7 @@ it from source control: http://www.mediawiki.org/wiki/Download_from_SVN created the page, even if it's not the top revision * (bug 17069) Added ucshow=patrolled|!patrolled to list=usercontribs * action=delete respects $wgDeleteRevisionsLimit and the bigdelete user right +* (bug 17024) Added legaltitlechars field to meta=siteinfo&siprop=general output === Languages updated in 1.15 === diff --git a/includes/api/ApiQuerySiteinfo.php b/includes/api/ApiQuerySiteinfo.php index b4f7445769..677f558ae5 100644 --- a/includes/api/ApiQuerySiteinfo.php +++ b/includes/api/ApiQuerySiteinfo.php @@ -88,6 +88,7 @@ class ApiQuerySiteinfo extends ApiQueryBase { protected function appendGeneralInfo( $property ) { global $wgSitename, $wgVersion, $wgCapitalLinks, $wgRightsCode, $wgRightsText, $wgContLang; global $wgLanguageCode, $IP, $wgEnableWriteAPI, $wgLang, $wgLocaltimezone, $wgLocalTZoffset; + global $wgLegalTitleChars; $data = array(); $mainPage = Title :: newFromText(wfMsgForContent('mainpage')); @@ -109,6 +110,7 @@ class ApiQuerySiteinfo extends ApiQueryBase { if( $wgContLang->isRTL() ) $data['rtl'] = ''; $data['fallback8bitEncoding'] = $wgLang->fallback8bitEncoding(); + $data['legaltitlechars'] = $wgLegalTitleChars; if( wfReadOnly() ) $data['readonly'] = ''; -- 2.20.1