MDL-60736 tool_mobile: Return language settings in get_public_config WS

This commit is contained in:
Juan Leyva
2018-03-21 17:27:29 +01:00
parent b63a3b04b1
commit e236259d97
3 changed files with 19 additions and 0 deletions
+5
View File
@@ -168,6 +168,11 @@ class external extends external_api {
(only if age verification is enabled).', VALUE_OPTIONAL),
'supportemail' => new external_value(PARAM_EMAIL, 'Site support contact email
(only if age verification is enabled).', VALUE_OPTIONAL),
'autolang' => new external_value(PARAM_INT, 'Whether to detect default language from browser setting.'),
'lang' => new external_value(PARAM_LANG, 'Default language for the site.'),
'langmenu' => new external_value(PARAM_INT, 'Whether the language menu should be displayed.'),
'langlist' => new external_value(PARAM_RAW, 'Languages on language menu.'),
'locale' => new external_value(PARAM_RAW, 'Sitewide locale.'),
'warnings' => new external_warnings(),
)
);