From: Roan Kattouw Date: Sat, 24 Jan 2009 13:16:24 +0000 (+0000) Subject: API: (bug 17024) Added legaltitlechars field to meta=siteinfo&siprop=general output... X-Git-Tag: 1.31.0-rc.0~43278 X-Git-Url: http://git.cyclocoop.org/%27.%28%24current%20%3E%202?a=commitdiff_plain;h=2e5e8808b44c63d5b55931a1028e55747244f711;p=lhc%2Fweb%2Fwiklou.git API: (bug 17024) Added legaltitlechars field to meta=siteinfo&siprop=general output, which contains the value of $wgLegalTitleChars --- 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'] = '';