diff --git a/admin/inc/class.uiconfig.inc.php b/admin/inc/class.uiconfig.inc.php index 71c676d702..a2168d920f 100644 --- a/admin/inc/class.uiconfig.inc.php +++ b/admin/inc/class.uiconfig.inc.php @@ -76,6 +76,27 @@ class uiconfig $t->set_unknowns('keep'); $t->set_file(array('config' => 'config.tpl')); $t->set_block('config','header','header'); + + // fix header templates missing essential parts like display of validation errors + $header = $t->get_var('header'); + if (strpos($header, '{error}') === false) + { + $header = '
{error}
'."\n".$header; + } + if (strpos($header, '{hidden_vars}') === false) + { + if (strpos($header, '