Merge "Allow setting the ID of the main table in HTMLForm"
[lhc/web/wiklou.git] / includes / api / ApiQueryInfo.php
index 787057d..5f8c497 100644 (file)
@@ -353,6 +353,7 @@ class ApiQueryInfo extends ApiQueryBase {
                $dbkey = $title->getDBkey();
 
                $pageInfo['contentmodel'] = $title->getContentModel();
+               $pageInfo['pagelanguage'] = $title->getPageLanguage()->getCode();
 
                if ( $titleExists ) {
                        global $wgDisableCounters;