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