From 185ed204561d38a3f43a7503e0ee5d710cbc38e2 Mon Sep 17 00:00:00 2001 From: Dani Palou Date: Thu, 29 Apr 2021 13:54:42 +0200 Subject: [PATCH] MDL-71273 tool_mobile: Change the LTI disabled feature --- admin/tool/mobile/classes/api.php | 4 ++-- admin/tool/mobile/lang/en/deprecated.txt | 3 ++- admin/tool/mobile/lang/en/tool_mobile.php | 5 ++++- 3 files changed, 8 insertions(+), 4 deletions(-) diff --git a/admin/tool/mobile/classes/api.php b/admin/tool/mobile/classes/api.php index ab74cb250b5..921ad812998 100644 --- a/admin/tool/mobile/classes/api.php +++ b/admin/tool/mobile/classes/api.php @@ -538,8 +538,8 @@ class api { if (!empty($availablemods['lti'])) { $ltidisplayname = $availablemods['lti']->displayname; - $features["$ltidisplayname"]['CoreCourseModuleDelegate_AddonModLti:openInAppBrowser'] = - new lang_string('openusingembeddedbrowser', 'tool_mobile'); + $features["$ltidisplayname"]['CoreCourseModuleDelegate_AddonModLti:launchViaSite'] = + new lang_string('launchviasiteinbrowser', 'tool_mobile'); } // Display OAuth 2 identity providers. diff --git a/admin/tool/mobile/lang/en/deprecated.txt b/admin/tool/mobile/lang/en/deprecated.txt index 0edc1360939..23bfa42e9bd 100644 --- a/admin/tool/mobile/lang/en/deprecated.txt +++ b/admin/tool/mobile/lang/en/deprecated.txt @@ -1 +1,2 @@ -mobileappconnected,tool_mobile \ No newline at end of file +mobileappconnected,tool_mobile +openusingembeddedbrowser,tool_mobile \ No newline at end of file diff --git a/admin/tool/mobile/lang/en/tool_mobile.php b/admin/tool/mobile/lang/en/tool_mobile.php index 6eedc759009..6a2ac04ff4d 100644 --- a/admin/tool/mobile/lang/en/tool_mobile.php +++ b/admin/tool/mobile/lang/en/tool_mobile.php @@ -80,6 +80,7 @@ $string['invalidprivatetoken'] = 'Invalid private token. Token should not be emp $string['invaliduserquotawarning'] = 'The user quota (userquota) is set to an invalid number. It should be set to a valid number (an integer value) in Site security settings.'; $string['iosappid'] = 'iOS app\'s unique identifier'; $string['iosappid_desc'] = 'This setting may be left as default unless you have a custom iOS app.'; +$string['launchviasiteinbrowser'] = 'Launch via site in system browser'; $string['loginintheapp'] = 'Via the app'; $string['logininthebrowser'] = 'Via a browser window (for SSO plugins)'; $string['loginintheembeddedbrowser'] = 'Via an embedded browser (for SSO plugins)'; @@ -109,7 +110,6 @@ $string['notificationssentnotifications'] = 'Notifications sent'; $string['notificationscurrentactivedevices'] = 'Devices receiving notifications this month'; $string['oauth2identityproviders'] = 'OAuth 2 identity providers'; $string['offlineuse'] = 'Offline use'; -$string['openusingembeddedbrowser'] = 'Open using embedded browser'; $string['pluginname'] = 'Moodle app tools'; $string['pluginnotenabledorconfigured'] = 'Plugin not enabled or configured.'; $string['qrcodedisabled'] = 'Access via QR code disabled'; @@ -147,3 +147,6 @@ $string['viewqrcode'] = 'View QR code'; // Deprecated since Moodle 3.10. $string['mobileappconnected'] = 'Mobile app connected'; + +// Deprecated since Moodle 3.11. +$string['openusingembeddedbrowser'] = 'Open using embedded browser';