Revision: 46138
Author:   catrope
Date:     2009-01-24 13:16:24 +0000 (Sat, 24 Jan 2009)

Log Message:
-----------
API: (bug 17024) Added legaltitlechars field to meta=siteinfo&siprop=general 
output, which contains the value of $wgLegalTitleChars

Modified Paths:
--------------
    trunk/phase3/RELEASE-NOTES
    trunk/phase3/includes/api/ApiQuerySiteinfo.php

Modified: trunk/phase3/RELEASE-NOTES
===================================================================
--- trunk/phase3/RELEASE-NOTES  2009-01-24 13:10:30 UTC (rev 46137)
+++ trunk/phase3/RELEASE-NOTES  2009-01-24 13:16:24 UTC (rev 46138)
@@ -90,6 +90,7 @@
   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 ===
 

Modified: trunk/phase3/includes/api/ApiQuerySiteinfo.php
===================================================================
--- trunk/phase3/includes/api/ApiQuerySiteinfo.php      2009-01-24 13:10:30 UTC 
(rev 46137)
+++ trunk/phase3/includes/api/ApiQuerySiteinfo.php      2009-01-24 13:16:24 UTC 
(rev 46138)
@@ -88,6 +88,7 @@
        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 @@
                if( $wgContLang->isRTL() ) 
                        $data['rtl'] = '';
                $data['fallback8bitEncoding'] = $wgLang->fallback8bitEncoding();
+               $data['legaltitlechars'] = $wgLegalTitleChars;
                
                if( wfReadOnly() )
                        $data['readonly'] = '';



_______________________________________________
MediaWiki-CVS mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-cvs

Reply via email to