From 1d6683bb0ef451fb56aa216db13038eead51db3a Mon Sep 17 00:00:00 2001 From: Juan Leyva Date: Tue, 30 Jun 2020 13:02:59 +0200 Subject: [PATCH] MDL-69031 tool_mobile: Add missing features that can be disabled in 3.9 --- admin/tool/mobile/classes/api.php | 7 +++++++ admin/tool/mobile/lang/en/tool_mobile.php | 2 ++ 2 files changed, 9 insertions(+) diff --git a/admin/tool/mobile/classes/api.php b/admin/tool/mobile/classes/api.php index a9dc790dbff84..07a51d94ad81d 100644 --- a/admin/tool/mobile/classes/api.php +++ b/admin/tool/mobile/classes/api.php @@ -489,6 +489,7 @@ public static function get_features_list() { '$mmSideMenuDelegate_mmaFiles' => new lang_string('files'), '$mmSideMenuDelegate_website' => new lang_string('webpage'), '$mmSideMenuDelegate_help' => new lang_string('help'), + 'CoreMainMenuDelegate_QrReader' => new lang_string('scanqrcode', 'tool_mobile'), ), "$course" => array( 'NoDelegate_CourseBlocks' => new lang_string('blocks'), @@ -527,6 +528,12 @@ public static function get_features_list() { $features["$remoteaddons"] = $remoteaddonslist; } + if (!empty($availablemods['lti'])) { + $ltidisplayname = $availablemods['lti']->displayname; + $features["$ltidisplayname"]['CoreCourseModuleDelegate_AddonModLti:openInAppBrowser'] = + new lang_string('openusingembeddedbrowser', 'tool_mobile'); + } + // Display OAuth 2 identity providers. if (is_enabled_auth('oauth2')) { $identityproviderslist = array(); diff --git a/admin/tool/mobile/lang/en/tool_mobile.php b/admin/tool/mobile/lang/en/tool_mobile.php index e56f280b49a8d..bc7fc893e98c2 100644 --- a/admin/tool/mobile/lang/en/tool_mobile.php +++ b/admin/tool/mobile/lang/en/tool_mobile.php @@ -105,6 +105,7 @@ $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'; @@ -118,6 +119,7 @@ $string['qrcodetypelogin'] = 'QR code with automatic login'; $string['readingthisemailgettheapp'] = 'Reading this in an email? Download the mobile app and receive notifications on your mobile device.'; $string['remoteaddons'] = 'Remote add-ons'; +$string['scanqrcode'] = 'Scan QR code'; $string['selfsignedoruntrustedcertificatewarning'] = 'It seems that the HTTPS certificate is self-signed or not trusted. The mobile app will only work with trusted sites.'; $string['setuplink'] = 'App download page'; $string['setuplink_desc'] = 'URL of page with options to download the mobile app from the App Store and Google Play. The app download page link is displayed in the page footer and in a user\'s profile. Leave blank to not display a link.';