MDL-56017 filters: Update MathJax to version 2.7
[moodle.git] / filter / mathjaxloader / db / upgrade.php
index 77fc2d9..4edbe2c 100644 (file)
@@ -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;
 }