]> git.mjollnir.org Git - moodle.git/commitdiff
MDL-14649 fixed cli upgrade too
authorskodak <skodak>
Fri, 2 May 2008 09:44:48 +0000 (09:44 +0000)
committerskodak <skodak>
Fri, 2 May 2008 09:44:48 +0000 (09:44 +0000)
admin/cliupgrade.php

index a47a0acd2d78fb478c11d41d2c2dc793cd76279f..df8dac17d77cb5c77c1a76f1a9ad8eb5a8ccfa79 100644 (file)
@@ -1029,10 +1029,6 @@ if ( file_exists(dirname(dirname(__FILE__)) . '/config.php')) {
                 } else if (!update_capabilities()) {
                     console_write(STDERR,'Had trouble upgrading the core capabilities for the Roles System','',false);
                 }
-                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");