Merge branch 'MDL-70317-311' of git://github.com/lucaboesch/moodle into MOODLE_311_STABLE

This commit is contained in:
Eloy Lafuente (stronk7)
2021-01-20 23:27:11 +01:00
4 changed files with 17 additions and 3 deletions
+12
View File
@@ -58,5 +58,17 @@ function xmldb_filter_mathjaxloader_upgrade($oldversion) {
// Automatically generated Moodle v3.10.0 release upgrade line.
// Put any upgrade step following this.
if ($oldversion < 2021012000) {
// Update CDN url.
$originalurl = 'https://cdn.jsdelivr.net/npm/[email protected]/MathJax.js';
$newurl = 'https://cdn.jsdelivr.net/npm/[email protected]/MathJax.js';
$currenturl = get_config('filter_mathjaxloader', 'httpsurl');
if ($currenturl == $originalurl) {
set_config('httpsurl', $newurl, 'filter_mathjaxloader');
}
upgrade_plugin_savepoint(true, 2021012000, 'filter', 'mathjaxloader');
}
return true;
}
+3 -1
View File
@@ -1,7 +1,7 @@
Description of MathJAX library integration in Moodle
====================================================
* Default MathJax version: 2.7.8
* Default MathJax version: 2.7.9
* License: Apache 2.0
* Source: https://www.mathjax.org/
@@ -21,5 +21,7 @@ Upgrading the default MathJax version
Changes
-------
* Updated to the 2.7.9 version. See MDL-70317 for details.
* The MathJax 2.7.2 seems to have a possible security issue, the CDN default value have been
updated to point to the recommended 2.7.8 version. See MDL-68430 for details.
+1 -1
View File
@@ -33,7 +33,7 @@ if ($ADMIN->fulltree) {
$item = new admin_setting_configtext('filter_mathjaxloader/httpsurl',
new lang_string('httpsurl', 'filter_mathjaxloader'),
new lang_string('httpsurl_help', 'filter_mathjaxloader'),
'https://cdn.jsdelivr.net/npm/[email protected].8/MathJax.js',
'https://cdn.jsdelivr.net/npm/[email protected].9/MathJax.js',
PARAM_RAW);
$settings->add($item);
+1 -1
View File
@@ -24,6 +24,6 @@
defined('MOODLE_INTERNAL') || die();
$plugin->version = 2020110900;
$plugin->version = 2021012000;
$plugin->requires = 2020110300; // Requires this Moodle version.
$plugin->component= 'filter_mathjaxloader';