]> git.mjollnir.org Git - moodle.git/commitdiff
MDL-14649 Old stats upgrade that we don't need any more
authormoodler <moodler>
Fri, 2 May 2008 01:55:13 +0000 (01:55 +0000)
committermoodler <moodler>
Fri, 2 May 2008 01:55:13 +0000 (01:55 +0000)
admin/index.php

index a14d2894edf7893200dc6784655eaf18b6777a38..3800408e82967c0c43a1f121bd2f9534fc0443f6 100644 (file)
             /// If successful, continue upgrading roles and setting everything properly
                 if ($status) {
                     if (empty($CFG->rolesactive)) {
-
-                        /// Groups upgrade is now in core above.
+                        // Groups upgrade is now in core above.
 
                         // Upgrade to the roles system.
                         moodle_install_roles();
                     } else if (!update_capabilities()) {
                         print_error('cannotupgradecapabilities', 'debug');
                     }
+
                     // update core events
                     events_update_definition();
 
-                    require_once($CFG->libdir.'/statslib.php');
-                    if (!stats_upgrade_for_roles_wrapper()) {
-                        notify('Couldn\'t upgrade the stats tables to use the new roles system');
-                    }
                     if (set_config("version", $version)) {
                         remove_dir($CFG->dataroot . '/cache', true); // flush cache
                         notify($strdatabasesuccess, "green");