From bae88061cc40d611762414903f3e9279ec9e5b1c Mon Sep 17 00:00:00 2001 From: Juan Leyva Date: Tue, 14 Mar 2017 21:43:31 +0100 Subject: [PATCH] MDL-57838 tool_mobile: Point to the docs for more information We should ask the admin to check the "Moodle docs for this page" instead of adding a constant including a URL in the code. --- admin/tool/mobile/classes/api.php | 2 -- admin/tool/mobile/lang/en/tool_mobile.php | 2 +- admin/tool/mobile/settings.php | 3 +-- 3 files changed, 2 insertions(+), 5 deletions(-) diff --git a/admin/tool/mobile/classes/api.php b/admin/tool/mobile/classes/api.php index 5e5836b07db..240497c6b7b 100644 --- a/admin/tool/mobile/classes/api.php +++ b/admin/tool/mobile/classes/api.php @@ -48,8 +48,6 @@ class api { const LOGIN_VIA_EMBEDDED_BROWSER = 3; /** @var int seconds an auto-login key will expire. */ const LOGIN_KEY_TTL = 60; - /** @var str link to the custom strings documentation for the app */ - const CUSTOM_STRINGS_DOC_URL = 'https://docs.moodle.org/en/Moodle_Mobile_language_strings_customisation'; /** * Returns a list of Moodle plugins supporting the mobile app. diff --git a/admin/tool/mobile/lang/en/tool_mobile.php b/admin/tool/mobile/lang/en/tool_mobile.php index bdab272efc4..842f45bfc2b 100644 --- a/admin/tool/mobile/lang/en/tool_mobile.php +++ b/admin/tool/mobile/lang/en/tool_mobile.php @@ -32,7 +32,7 @@ $string['customlangstrings_desc'] = 'Words and phrases displayed in the app can mm.user.student|Learner|en mm.user.student|Aprendiz|es -For a complete list of string identifiers and more information, see the documentation page.'; +For a complete list of string identifiers, see the documentation.'; $string['custommenuitems'] = 'Custom menu items'; $string['custommenuitems_desc'] = 'Additional items can be added to the app\'s main menu by specifying them here. Enter each custom menu item on a new line with format: item text, link URL, link-opening method (inappbrowser, browser or embedded) and language code (optional, for displaying the item to users of the specified language only), separated by pipe characters. For example:
diff --git a/admin/tool/mobile/settings.php b/admin/tool/mobile/settings.php
index 11e3c98bcbd..2700816bb52 100644
--- a/admin/tool/mobile/settings.php
+++ b/admin/tool/mobile/settings.php
@@ -109,8 +109,7 @@ if ($hassiteconfig) {
 
         $temp->add(new admin_setting_configtextarea('tool_mobile/customlangstrings',
                     new lang_string('customlangstrings', 'tool_mobile'),
-                    new lang_string('customlangstrings_desc', 'tool_mobile', tool_mobile\api::CUSTOM_STRINGS_DOC_URL),
-                    '', PARAM_RAW, '50', '10'));
+                    new lang_string('customlangstrings_desc', 'tool_mobile'), '', PARAM_RAW, '50', '10'));
 
         $ADMIN->add('mobileapp', $temp);
     }