Commit 5101310d authored by Juan Leyva's avatar Juan Leyva Committed by Eloy Lafuente
Browse files

MDL-53777 tool_mobile: Fix incorrect and untranslated string

parent 520ee366
......@@ -34,5 +34,6 @@ $string['logininthebrowser'] = 'Via a browser window (for SSO plugins)';
$string['loginintheembeddedbrowser'] = 'Via an embedded browser (for SSO plugins)';
$string['pluginname'] = 'Moodle Mobile tools';
$string['smartappbanners'] = 'Smart App Banners (iOS only)';
$string['pluginnotenabledorconfigured'] = 'Plugin not enabled or configured.';
$string['typeoflogin'] = 'Type of login';
$string['typeoflogin_desc'] = 'Choose the type of login.';
......@@ -41,7 +41,7 @@ if (!$CFG->enablewebservices) {
$typeoflogin = get_config('tool_mobile', 'typeoflogin');
if ($typeoflogin != tool_mobile\api::LOGIN_VIA_BROWSER and
$typeoflogin != tool_mobile\api::LOGIN_VIA_EMBEDDED_BROWSER) {
throw new moodle_exception('pluginnotenabledorconfigured', 'local_mobile');
throw new moodle_exception('pluginnotenabledorconfigured', 'tool_mobile');
// Check if the service exists and is enabled.
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment