/** * @param EasySCP_TemplateEngine $tpl * @param EasySCP_Update_Database $dbUpdate * @return void */ function get_db_update_infos($tpl, $dbUpdate) { if ($dbUpdate->checkUpdateExists()) { $tpl->assign(array('DB_UPDATE' => tr('New Database update is now available'), 'DB_INFOS' => tr('Do you want to execute the Updates now?'))); } else { $tpl->assign(array('DB_UPDATE_MESSAGE' => tr('No database updates available'), 'DB_UPDATE_MSG_TYPE' => 'info')); } }