diff --git a/e107_admin/update_routines.php b/e107_admin/update_routines.php index 4a7068acd..d862c2b55 100644 --- a/e107_admin/update_routines.php +++ b/e107_admin/update_routines.php @@ -130,8 +130,15 @@ if (!$dont_check_update) // set 'master' to true to prevent other upgrades from running before it is complete. $LAN_UPDATE_4 = deftrue('LAN_UPDATE_4',"Update from [x] to [y]"); // in case language-pack hasn't been upgraded. + $LAN_UPDATE_5 = deftrue('LAN_UPDATE_5', "Core database structure"); - $dbupdate['706_to_800'] = array('master'=>true, 'title'=> e107::getParser()->lanVars($LAN_UPDATE_4, array('1.x','2.0')), 'message'=> LAN_UPDATE_29); + + + $dbupdate['706_to_800'] = array('master'=>true, 'title'=> e107::getParser()->lanVars($LAN_UPDATE_4, array('1.x','2.0')), 'message'=> LAN_UPDATE_29, 'hide_when_complete'=>false); + + + // always run these last. + $dbupdate['core_database'] = array('master'=>false, 'title'=> $LAN_UPDATE_5); $dbupdate['core_prefs'] = array('master'=>true, 'title'=> LAN_UPDATE_13); // Prefs check // $dbupdate['70x_to_706'] = LAN_UPDATE_8.' .70x '.LAN_UPDATE_9.' .706'; } // End if (!$dont_check_update) @@ -265,18 +272,23 @@ class e107Update foreach($this->core as $func => $data) { + $text2 = ''; + if(function_exists("update_".$func)) { - $text .= "