r32540 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r32539‎ | r32540 | r32541 >
Date:13:12, 28 March 2008
Author:catrope
Status:old
Tags:
Comment:
API: Added fallback8bitEncoding to meta=siteinfo output
Modified paths:
  • /trunk/phase3/RELEASE-NOTES (modified) (history)
  • /trunk/phase3/includes/api/ApiQuerySiteinfo.php (modified) (history)

Diff [purge]

Index: trunk/phase3/includes/api/ApiQuerySiteinfo.php
@@ -74,7 +74,7 @@
7575 }
7676
7777 protected function appendGeneralInfo($property) {
78 - global $wgSitename, $wgVersion, $wgCapitalLinks, $wgRightsCode, $wgRightsText, $wgLanguageCode, $IP, $wgEnableWriteAPI;
 78+ global $wgSitename, $wgVersion, $wgCapitalLinks, $wgRightsCode, $wgRightsText, $wgLanguageCode, $IP, $wgEnableWriteAPI, $wgLang;
7979
8080 $data = array ();
8181 $mainPage = Title :: newFromText(wfMsgForContent('mainpage'));
@@ -87,10 +87,12 @@
8888 if ( $svn ) $data['rev'] = $svn;
8989
9090 $data['case'] = $wgCapitalLinks ? 'first-letter' : 'case-sensitive'; // 'case-insensitive' option is reserved for future
 91+
9192 if (isset($wgRightsCode))
9293 $data['rightscode'] = $wgRightsCode;
9394 $data['rights'] = $wgRightsText;
9495 $data['lang'] = $wgLanguageCode;
 96+ $data['fallback8bitEncoding'] = $wgLang->fallback8bitEncoding();
9597
9698 if ( $wgEnableWriteAPI )
9799 $data['writeapi'] = '';
Index: trunk/phase3/RELEASE-NOTES
@@ -172,6 +172,7 @@
173173 * Replaced $wgAPIUCUserPrefixMinLength by the more generic $wgAPIMaxDBRows
174174 * (bug 11719) Remove trailing blanks in YAML output.
175175 * (bug 13541) Added siprop=specialpagealiases to meta=siteinfo
 176+* Added fallback8bitEncoding field to meta=siteinfo&siprop=general output
176177
177178 === Languages updated in 1.13 ===
178179

Status & tagging log