Proyectos de Subversion Moodle

Rev

Rev 1 | Mostrar el archivo completo | | | Autoría | Ultima modificación | Ver Log |

Rev 1 Rev 1441
Línea 25... Línea 25...
25
/**
25
/**
26
 * @param int $oldversion the version we are upgrading from
26
 * @param int $oldversion the version we are upgrading from
27
 * @return bool result
27
 * @return bool result
28
 */
28
 */
29
function xmldb_filter_mathjaxloader_upgrade($oldversion) {
29
function xmldb_filter_mathjaxloader_upgrade($oldversion) {
30
    // Automatically generated Moodle v4.1.0 release upgrade line.
-
 
31
    // Put any upgrade step following this.
-
 
32
 
-
 
33
    // Automatically generated Moodle v4.2.0 release upgrade line.
30
    // Automatically generated Moodle v4.2.0 release upgrade line.
34
    // Put any upgrade step following this.
31
    // Put any upgrade step following this.
Línea 35... Línea 32...
35
 
32
 
36
    // Automatically generated Moodle v4.3.0 release upgrade line.
33
    // Automatically generated Moodle v4.3.0 release upgrade line.
Línea 37... Línea 34...
37
    // Put any upgrade step following this.
34
    // Put any upgrade step following this.
38
 
35
 
Línea -... Línea 36...
-
 
36
    // Automatically generated Moodle v4.4.0 release upgrade line.
-
 
37
    // Put any upgrade step following this.
-
 
38
 
-
 
39
    // Automatically generated Moodle v4.5.0 release upgrade line.
-
 
40
    // Put any upgrade step following this.
-
 
41
 
-
 
42
    if ($oldversion < 2025022700) {
-
 
43
        // Set value of "httpsurl" to the latest MathJax cdn version 3.2.2.
-
 
44
        set_config('httpsurl', 'https://cdn.jsdelivr.net/npm/mathjax@3.2.2/es5/tex-mml-chtml.js', 'filter_mathjaxloader');
-
 
45
 
-
 
46
        // Set the "mathjaxconfig" value to empty due to default config has been set by default.
-
 
47
        // We can always set new configs from the setting page in site admin.
-
 
48
        set_config('mathjaxconfig', '', 'filter_mathjaxloader');
-
 
49
 
-
 
50
        // Main savepoint reached.
-
 
51
        upgrade_plugin_savepoint(true, 2025022700, 'filter', 'mathjaxloader');
-
 
52
    }
-
 
53
 
39
    // Automatically generated Moodle v4.4.0 release upgrade line.
54
    // Automatically generated Moodle v5.0.0 release upgrade line.
40
    // Put any upgrade step following this.
55
    // Put any upgrade step following this.