Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
integration
prechecker
Commits
5101310d
Commit
5101310d
authored
Oct 05, 2016
by
Juan Leyva
Committed by
Eloy Lafuente
Oct 06, 2016
Browse files
MDL-53777 tool_mobile: Fix incorrect and untranslated string
parent
520ee366
Changes
2
Hide whitespace changes
Inline
Side-by-side
admin/tool/mobile/lang/en/tool_mobile.php
View file @
5101310d
...
...
@@ -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.'
;
admin/tool/mobile/launch.php
View file @
5101310d
...
...
@@ -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'
,
'
loca
l_mobile'
);
throw
new
moodle_exception
(
'pluginnotenabledorconfigured'
,
'
too
l_mobile'
);
}
// Check if the service exists and is enabled.
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment