Index: trunk/phase3/includes/api/ApiQuerySiteinfo.php |
— | — | @@ -74,7 +74,7 @@ |
75 | 75 | } |
76 | 76 | |
77 | 77 | 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; |
79 | 79 | |
80 | 80 | $data = array (); |
81 | 81 | $mainPage = Title :: newFromText(wfMsgForContent('mainpage')); |
— | — | @@ -87,10 +87,12 @@ |
88 | 88 | if ( $svn ) $data['rev'] = $svn; |
89 | 89 | |
90 | 90 | $data['case'] = $wgCapitalLinks ? 'first-letter' : 'case-sensitive'; // 'case-insensitive' option is reserved for future |
| 91 | + |
91 | 92 | if (isset($wgRightsCode)) |
92 | 93 | $data['rightscode'] = $wgRightsCode; |
93 | 94 | $data['rights'] = $wgRightsText; |
94 | 95 | $data['lang'] = $wgLanguageCode; |
| 96 | + $data['fallback8bitEncoding'] = $wgLang->fallback8bitEncoding(); |
95 | 97 | |
96 | 98 | if ( $wgEnableWriteAPI ) |
97 | 99 | $data['writeapi'] = ''; |
Index: trunk/phase3/RELEASE-NOTES |
— | — | @@ -172,6 +172,7 @@ |
173 | 173 | * Replaced $wgAPIUCUserPrefixMinLength by the more generic $wgAPIMaxDBRows |
174 | 174 | * (bug 11719) Remove trailing blanks in YAML output. |
175 | 175 | * (bug 13541) Added siprop=specialpagealiases to meta=siteinfo |
| 176 | +* Added fallback8bitEncoding field to meta=siteinfo&siprop=general output |
176 | 177 | |
177 | 178 | === Languages updated in 1.13 === |
178 | 179 | |