Línea 115... |
Línea 115... |
115 |
// setting here via $CFG->forced_plugin_settings, so it won't interfere other operations.
|
115 |
// setting here via $CFG->forced_plugin_settings, so it won't interfere other operations.
|
116 |
// See MDL-65218 and MDL-35773 for more information.
|
116 |
// See MDL-65218 and MDL-35773 for more information.
|
117 |
// This hack will be removed once recycle bin switches to use its own backup mode, with
|
117 |
// This hack will be removed once recycle bin switches to use its own backup mode, with
|
118 |
// own preferences and 100% separate from MOODLE_AUTOMATED.
|
118 |
// own preferences and 100% separate from MOODLE_AUTOMATED.
|
119 |
// TODO: Remove this as part of MDL-65228.
|
119 |
// TODO: Remove this as part of MDL-65228.
|
120 |
$forcedbackupsettings = $CFG->forced_plugin_settings['backup'] ?? null;
|
120 |
$forcedbackupsettings = $CFG->forced_plugin_settings['backup'] ?? [];
|
121 |
$CFG->forced_plugin_settings['backup']['backup_auto_storage'] = 0;
|
121 |
$CFG->forced_plugin_settings['backup']['backup_auto_storage'] = 0;
|
122 |
$CFG->forced_plugin_settings['backup']['backup_auto_files'] = 1;
|
122 |
$CFG->forced_plugin_settings['backup']['backup_auto_files'] = 1;
|
Línea 123... |
Línea 123... |
123 |
|
123 |
|
124 |
// Backup the course.
|
124 |
// Backup the course.
|
Línea 251... |
Línea 251... |
251 |
// so it won't interfere other operations.
|
251 |
// so it won't interfere other operations.
|
252 |
// See MDL-65218 and MDL-35773 for more information.
|
252 |
// See MDL-65218 and MDL-35773 for more information.
|
253 |
// This hack will be removed once recycle bin switches to use its own backup mode, with
|
253 |
// This hack will be removed once recycle bin switches to use its own backup mode, with
|
254 |
// own preferences and 100% separate from MOODLE_AUTOMATED.
|
254 |
// own preferences and 100% separate from MOODLE_AUTOMATED.
|
255 |
// TODO: Remove this as part of MDL-65228.
|
255 |
// TODO: Remove this as part of MDL-65228.
|
256 |
$forcedrestoresettings = $CFG->forced_plugin_settings['restore'] ?? null;
|
256 |
$forcedrestoresettings = $CFG->forced_plugin_settings['restore'] ?? [];
|
257 |
$CFG->forced_plugin_settings['restore']['restore_general_users'] = 1;
|
257 |
$CFG->forced_plugin_settings['restore']['restore_general_users'] = 1;
|
258 |
$CFG->forced_plugin_settings['restore']['restore_general_groups'] = 1;
|
258 |
$CFG->forced_plugin_settings['restore']['restore_general_groups'] = 1;
|
Línea 259... |
Línea 259... |
259 |
|
259 |
|
260 |
// Define the import.
|
260 |
// Define the import.
|