]> git.mjollnir.org Git - moodle.git/commitdiff
MDL-14605 removing roles upgrade links, only installation needed in HEAD
authorskodak <skodak>
Fri, 2 May 2008 09:47:20 +0000 (09:47 +0000)
committerskodak <skodak>
Fri, 2 May 2008 09:47:20 +0000 (09:47 +0000)
admin/cliupgrade.php
admin/index.php

index df8dac17d77cb5c77c1a76f1a9ad8eb5a8ccfa79..e3ddd7f03cb6728a29e1dc1165d291b2f799879a 100644 (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)) {
index 60cb459538b9b9bcee302f703d11f590f6b6c6de..09f39f5b16642e5710c593d23bb6b63e408fa7ff 100644 (file)
                 $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');
                     }