diff --git a/admin/index.php b/admin/index.php index 25a48a67824..5632df5accb 100644 --- a/admin/index.php +++ b/admin/index.php @@ -228,6 +228,9 @@ +/// Find and check all main modules and load them up or upgrade them if necessary + upgrade_activity_modules("$CFG->wwwroot/$CFG->admin/index.php"); // Return here afterwards + /// Upgrade backup/restore system if necessary require_once("$CFG->dirroot/backup/lib.php"); upgrade_backup_db("$CFG->wwwroot/$CFG->admin/index.php"); // Return here afterwards @@ -242,9 +245,6 @@ /// Check all enrolment plugins and upgrade if necessary upgrade_enrol_plugins("$CFG->wwwroot/$CFG->admin/index.php"); // Return here afterwards -/// Find and check all main modules and load them up or upgrade them if necessary - upgrade_activity_modules("$CFG->wwwroot/$CFG->admin/index.php"); // Return here afterwards - /// Set up the overall site name etc.