MDL-14605 removing roles upgrade links, only installation needed in HEAD

This commit is contained in:
skodak 2008-05-02 09:47:20 +00:00
parent 5e819fb75b
commit a5ca5003f2
2 changed files with 2 additions and 12 deletions

View File

@ -1022,11 +1022,7 @@ if ( file_exists(dirname(dirname(__FILE__)) . '/config.php')) {
/// If successful, continue upgrading roles and setting everything properly
if ($status) {
if (empty($CFG->rolesactive)) {
// Upgrade to the roles system.
moodle_install_roles();
set_config('rolesactive', 1);
} else if (!update_capabilities()) {
if (!update_capabilities()) {
console_write(STDERR,'Had trouble upgrading the core capabilities for the Roles System','',false);
}
if (set_config("version", $version)) {

View File

@ -348,13 +348,7 @@
$db->debug=false;
/// If successful, continue upgrading roles and setting everything properly
if ($status) {
if (empty($CFG->rolesactive)) {
// Groups upgrade is now in core above.
// Upgrade to the roles system.
moodle_install_roles();
set_config('rolesactive', 1);
} else if (!update_capabilities()) {
if (!update_capabilities()) {
print_error('cannotupgradecapabilities', 'debug');
}