From: moodler Date: Fri, 2 May 2008 01:55:13 +0000 (+0000) Subject: MDL-14649 Old stats upgrade that we don't need any more X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=5811a8e848ba9ae5f8a789397b3dcb010a445b79;p=moodle.git MDL-14649 Old stats upgrade that we don't need any more --- diff --git a/admin/index.php b/admin/index.php index a14d2894ed..3800408e82 100644 --- a/admin/index.php +++ b/admin/index.php @@ -350,8 +350,7 @@ /// 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(); @@ -359,13 +358,10 @@ } 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");