API: (bug 17024) Added legaltitlechars field to meta=siteinfo&siprop=general output...
authorRoan Kattouw <catrope@users.mediawiki.org>
Sat, 24 Jan 2009 13:16:24 +0000 (13:16 +0000)
committerRoan Kattouw <catrope@users.mediawiki.org>
Sat, 24 Jan 2009 13:16:24 +0000 (13:16 +0000)
RELEASE-NOTES
includes/api/ApiQuerySiteinfo.php

index e8b8ce3..b1ac48c 100644 (file)
@@ -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 ===
 
index b4f7445..677f558 100644 (file)
@@ -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'] = '';