Permalink
Browse files

moved call to upgrade stats until after all the roles stuff has been …

…set up
  • Loading branch information...
1 parent 6e208cd commit bd2b8ddecd70a3081d777fa5ff3cca60ec8e15c8 mjollnir_ committed Sep 22, 2006
Showing with 4 additions and 4 deletions.
  1. +4 −4 admin/index.php
View
@@ -247,15 +247,15 @@
// Upgrade to the roles system.
moodle_install_roles();
}
- 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 (!update_capabilities()) {
error('Had trouble upgrading the core capabilities for the Roles System');
} else {
set_config('rolesactive', 1);
}
+ 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");

0 comments on commit bd2b8dd

Please sign in to comment.