Index: trunk/phase3/RELEASE-NOTES |
— | — | @@ -284,6 +284,7 @@ |
285 | 285 | * Added categorymembers list to query for pages in a category. |
286 | 286 | * (bug 10260) Show page protection status |
287 | 287 | * (bug 10392) Include MediaWiki version details in version output |
| 288 | +* (bug 10411) Site language in meta=siteinfo |
288 | 289 | |
289 | 290 | == Maintenance script changes since 1.10 == |
290 | 291 | |
Index: trunk/phase3/includes/api/ApiQuerySiteinfo.php |
— | — | @@ -62,7 +62,7 @@ |
63 | 63 | } |
64 | 64 | |
65 | 65 | protected function appendGeneralInfo($property) { |
66 | | - global $wgSitename, $wgVersion, $wgCapitalLinks, $wgRightsCode, $wgRightsText; |
| 66 | + global $wgSitename, $wgVersion, $wgCapitalLinks, $wgRightsCode, $wgRightsText, $wgLang; |
67 | 67 | |
68 | 68 | $data = array (); |
69 | 69 | $mainPage = Title :: newFromText(wfMsgForContent('mainpage')); |
— | — | @@ -74,6 +74,7 @@ |
75 | 75 | if (isset($wgRightsCode)) |
76 | 76 | $data['rightscode'] = $wgRightsCode; |
77 | 77 | $data['rights'] = $wgRightsText; |
| 78 | + $data['lang'] = $wgLang->getCode(); |
78 | 79 | |
79 | 80 | $this->getResult()->addValue('query', $property, $data); |
80 | 81 | } |