Do the module upgrades before the qtype upgrades

This commit is contained in:
gustav_delius 2006-03-23 13:05:40 +00:00
parent 51bcdf28b3
commit 5bf3aee8bb

View File

@ -239,12 +239,12 @@
redirect("config.php");
}
/// Check all questiontype plugins and upgrade if necessary
upgrade_plugins('qtype', 'question/questiontypes', "$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
/// Check all questiontype plugins and upgrade if necessary
upgrade_plugins('qtype', 'question/questiontypes', "$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