Proyectos de Subversion Moodle

Rev

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

Rev 1 Rev 11
Línea 1168... Línea 1168...
1168
    }
1168
    }
Línea 1169... Línea 1169...
1169
 
1169
 
1170
    // Automatically generated Moodle v4.4.0 release upgrade line.
1170
    // Automatically generated Moodle v4.4.0 release upgrade line.
Línea -... Línea 1171...
-
 
1171
    // Put any upgrade step following this.
-
 
1172
 
-
 
1173
    if ($oldversion < 2024042201.09) {
-
 
1174
 
-
 
1175
        // Fix missing default admin presets "sensible settings" (those that should be treated as sensitive).
-
 
1176
        $newsensiblesettings = [
-
 
1177
            'bigbluebuttonbn_shared_secret@@none',
-
 
1178
            'apikey@@tiny_premium',
-
 
1179
            'matrixaccesstoken@@communication_matrix',
-
 
1180
            'api_secret@@factor_sms',
-
 
1181
        ];
-
 
1182
 
-
 
1183
        $sensiblesettings = get_config('adminpresets', 'sensiblesettings');
-
 
1184
        foreach ($newsensiblesettings as $newsensiblesetting) {
-
 
1185
            if (strpos($sensiblesettings, $newsensiblesetting) === false) {
-
 
1186
                $sensiblesettings .= ", {$newsensiblesetting}";
-
 
1187
            }
-
 
1188
        }
-
 
1189
 
-
 
1190
        set_config('sensiblesettings', $sensiblesettings, 'adminpresets');
-
 
1191
 
-
 
1192
        // Main savepoint reached.
-
 
1193
        upgrade_main_savepoint(true, 2024042201.09);
1171
    // Put any upgrade step following this.
1194
    }
1172
 
1195