Proyectos de Subversion Moodle

Rev

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

Rev 1 Rev 1441
Línea 204... Línea 204...
204
            }
204
            }
205
        }
205
        }
Línea 206... Línea 206...
206
 
206
 
207
        // Now, if mode is HUB or IMPORT, and still we are including users in backup, turn them off
207
        // Now, if mode is HUB or IMPORT, and still we are including users in backup, turn them off
208
        // Defaults processing should have handled this, but we need to be 100% sure
208
        // Defaults processing should have handled this, but we need to be 100% sure
209
        if ($mode == backup::MODE_IMPORT || $mode == backup::MODE_HUB) {
209
        if ($mode == backup::MODE_IMPORT) {
210
            $userssetting = $backup_controller->get_plan()->get_setting('users');
210
            $userssetting = $backup_controller->get_plan()->get_setting('users');
211
            if ($userssetting->get_value()) {
211
            if ($userssetting->get_value()) {
212
                $userssetting->set_value(false);                              // Set the value to false
212
                $userssetting->set_value(false);                              // Set the value to false
213
                $userssetting->set_status(base_setting::LOCKED_BY_PERMISSION);// Set the status to locked by perm
213
                $userssetting->set_status(base_setting::LOCKED_BY_PERMISSION);// Set the status to locked by perm