From bf0e51d1a171d1fb4b33baa580eaa85997be6144 Mon Sep 17 00:00:00 2001 From: "Eloy Lafuente (stronk7)" Date: Fri, 9 Oct 2015 00:14:09 +0200 Subject: [PATCH] MDL-50182 core: add 3.0 environmental requirements Only change from 2.9 is the modification of the slasharguments admin setting string to recommend always to keep the setting enabled and fix the problem in the server, warning about the drawbacks of disabling it. Also, there is a little phpdoc note added to one custom check to have clearly specified when we can get rid of it. --- admin/environment.xml | 139 +++++++++++++++++++++++++++++++++ lang/en/admin.php | 2 +- question/engine/upgrade/upgradelib.php | 3 + 3 files changed, 143 insertions(+), 1 deletion(-) diff --git a/admin/environment.xml b/admin/environment.xml index 32bb20772ba..68474839d3d 100644 --- a/admin/environment.xml +++ b/admin/environment.xml @@ -1420,4 +1420,143 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/lang/en/admin.php b/lang/en/admin.php index 66239fa4118..58780b458d9 100644 --- a/lang/en/admin.php +++ b/lang/en/admin.php @@ -327,7 +327,7 @@ $string['configsitedefaultlicense'] = 'Default site licence'; $string['configsitedefaultlicensehelp'] = 'The default licence for publishing content on this site'; $string['configsitemaxcategorydepth'] = 'Maximum category depth'; $string['configsitemaxcategorydepthhelp'] = 'This specifies the maximum depth of child categories expanded when displaying categories or combo list. Deeper level categories will appear as links and user can expand them with AJAX request.'; -$string['configslasharguments'] = 'Files (images, uploads etc) are provided via a script using \'slash arguments\'. This method allows files to be more easily cached in web browsers, proxy servers etc. Unfortunately, some PHP servers don\'t allow this method, so if you have trouble viewing uploaded files or images (eg user pictures), disable this setting.'; +$string['configslasharguments'] = '\'Slash arguments\' (using PATH_INFO) is required for SCORM packages and multiple-file resources to display correctly. If your web server doesn\'t support \'slash arguments\' and you are unable to configure it, this setting can be disabled, though it will result in things not working.
Note: The use of \'slash arguments\' will be required in future versions of Moodle.'; $string['configsmartpix'] = 'With this on, icons are served through a PHP script that searches the current theme, then all parent themes, then the Moodle /pix folder. This reduces the need to duplicate image files within themes, but has a slight performance cost.'; $string['configstartwday'] = 'Start of week'; $string['configstatsfirstrun'] = 'This specifies how far back the logs should be processed the first time the cronjob wants to process statistics. If you have a lot of traffic and are on shared hosting, it\'s probably not a good idea to go too far back, as it could take a long time to run and be quite resource intensive. (Note that for this setting, 1 month = 28 days. In the graphs and reports generated, 1 month = 1 calendar month.)'; diff --git a/question/engine/upgrade/upgradelib.php b/question/engine/upgrade/upgradelib.php index e62e7abc2de..d60fa17ab11 100644 --- a/question/engine/upgrade/upgradelib.php +++ b/question/engine/upgrade/upgradelib.php @@ -447,6 +447,9 @@ class question_deleted_question_attempt_updater extends question_qtype_attempt_u * This check verifies that all quiz attempts were upgraded since following * the question engine upgrade in Moodle 2.1. * + * Note: This custom check (and its environment.xml declaration) will be safely + * removed once we raise min required Moodle version to be 2.7 or newer. + * * @param environment_results object to update, if relevant. * @return environment_results updated results object, or null if this test is not relevant. */ -- 2.11.4.GIT