Only launch the old upgrade if it exists. It doesn'texist for new DB

flavours and modules.
This commit is contained in:
stronk7 2006-09-02 23:40:13 +00:00
parent ec87d0474f
commit 3430fb2993

View file

@ -217,8 +217,11 @@
upgrade_log_start();
print_heading($strdatabasechecking);
$db->debug=true;
/// Launch the old main upgrade
/// Launch the old main upgrade (if exists)
$status = true;
if (function_exists('main_upgrade')) {
$status = main_upgrade($CFG->version);
}
/// If succesful and exists launch the new main upgrade (XMLDB), called xmldb_main_upgrade
if ($status && function_exists('xmldb_main_upgrade')) {
$status = xmldb_main_upgrade($CFG->version);