Proyectos de Subversion Moodle

Rev

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

Rev 1 Rev 1441
Línea 136... Línea 136...
136
            }
136
            }
137
        }
137
        }
Línea 138... Línea 138...
138
 
138
 
139
        // Now, if mode is HUB or IMPORT, and still we are including users in restore, turn them off
139
        // Now, if mode is HUB or IMPORT, and still we are including users in restore, turn them off
140
        // Defaults processing should have handled this, but we need to be 100% sure
140
        // Defaults processing should have handled this, but we need to be 100% sure
141
        if ($mode == backup::MODE_IMPORT || $mode == backup::MODE_HUB) {
141
        if ($mode == backup::MODE_IMPORT) {
142
            $userssetting = $restore_controller->get_plan()->get_setting('users');
142
            $userssetting = $restore_controller->get_plan()->get_setting('users');
143
            if ($userssetting->get_value()) {
143
            if ($userssetting->get_value()) {
144
                $userssetting->set_value(false);                              // Set the value to false
144
                $userssetting->set_value(false);                              // Set the value to false
145
                $userssetting->set_status(base_setting::LOCKED_BY_PERMISSION);// Set the status to locked by perm
145
                $userssetting->set_status(base_setting::LOCKED_BY_PERMISSION);// Set the status to locked by perm