Proyectos de Subversion Moodle

Rev

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

Rev 1 Rev 1441
Línea 29... Línea 29...
29
 * @return bool result
29
 * @return bool result
30
 */
30
 */
31
function xmldb_format_topics_upgrade($oldversion) {
31
function xmldb_format_topics_upgrade($oldversion) {
32
    global $DB;
32
    global $DB;
Línea 33... Línea -...
33
 
-
 
34
    // Automatically generated Moodle v4.1.0 release upgrade line.
-
 
35
    // Put any upgrade step following this.
-
 
36
 
-
 
37
    if ($oldversion < 2023030700) {
-
 
38
        // For sites migrating from 4.0.x or 4.1.x where the indentation was removed,
-
 
39
        // we are disabling 'indentation' value by default.
-
 
40
        if ($oldversion >= 2022041900) {
-
 
41
            set_config('indentation', 0, 'format_topics');
-
 
42
        } else {
-
 
43
            set_config('indentation', 1, 'format_topics');
-
 
44
        }
-
 
45
        upgrade_plugin_savepoint(true, 2023030700, 'format', 'topics');
-
 
46
    }
-
 
47
 
33
 
48
    // Automatically generated Moodle v4.2.0 release upgrade line.
34
    // Automatically generated Moodle v4.2.0 release upgrade line.
Línea 49... Línea 35...
49
    // Put any upgrade step following this.
35
    // Put any upgrade step following this.
50
 
36
 
Línea 70... Línea 56...
70
    }
56
    }
Línea 71... Línea 57...
71
 
57
 
72
    // Automatically generated Moodle v4.4.0 release upgrade line.
58
    // Automatically generated Moodle v4.4.0 release upgrade line.
Línea -... Línea 59...
-
 
59
    // Put any upgrade step following this.
-
 
60
 
-
 
61
    // Automatically generated Moodle v4.5.0 release upgrade line.
-
 
62
    // Put any upgrade step following this.
-
 
63
 
-
 
64
    // Automatically generated Moodle v5.0.0 release upgrade line.
73
    // Put any upgrade step following this.
65
    // Put any upgrade step following this.
74
 
66