MDL-56017 filters: Update MathJax to version 2.7
This commit is contained in:
@@ -148,5 +148,12 @@ MathJax.Hub.Config({
|
||||
upgrade_plugin_savepoint(true, 2016080200, 'filter', 'mathjaxloader');
|
||||
}
|
||||
|
||||
if ($oldversion < 2016080201) {
|
||||
$httpsurl = get_config('filter_mathjaxloader', 'httpsurl');
|
||||
if ($httpsurl === "https://cdn.mathjax.org/mathjax/2.6-latest/MathJax.js") {
|
||||
set_config('httpsurl', 'https://cdn.mathjax.org/mathjax/2.7-latest/MathJax.js', 'filter_mathjaxloader');
|
||||
}
|
||||
upgrade_plugin_savepoint(true, 2016080201, 'filter', 'mathjaxloader');
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
@@ -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.mathjax.org/mathjax/2.6-latest/MathJax.js',
|
||||
'https://cdn.mathjax.org/mathjax/2.7-latest/MathJax.js',
|
||||
PARAM_RAW);
|
||||
$settings->add($item);
|
||||
|
||||
|
||||
@@ -24,6 +24,6 @@
|
||||
|
||||
defined('MOODLE_INTERNAL') || die();
|
||||
|
||||
$plugin->version = 2016080200;
|
||||
$plugin->version = 2016080201;
|
||||
$plugin->requires = 2016051900; // Requires this Moodle version.
|
||||
$plugin->component= 'filter_mathjaxloader';
|
||||
|
||||
Reference in New Issue
Block a user