diff --git a/admin/inc/class.uiconfig.inc.php b/admin/inc/class.uiconfig.inc.php
index 9fa837b782..3957813d3a 100644
--- a/admin/inc/class.uiconfig.inc.php
+++ b/admin/inc/class.uiconfig.inc.php
@@ -81,10 +81,6 @@ class uiconfig
// 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, 'set_var('error','');
if($errors)
{
- $t->set_var('error',lang('Error') . ': ' . $errors);
- $t->set_var('th_err','#FF8888');
+ egw_framework::message(lang('Error') . ': ' . $errors, 'error');
unset($errors);
unset($GLOBALS['config_error']);
}
else
{
- $t->set_var('error','');
- $t->set_var('th_err',$GLOBALS['egw_info']['theme']['th_bg']);
+ egw_framework::message(lang('Configuration saved.'), 'success');
}
$t->set_var('title',lang('Site Configuration'));
$t->set_var('action_url',$GLOBALS['egw']->link('/index.php','menuaction=admin.uiconfig.index&appname=' . $appname));
@@ -264,6 +260,9 @@ class uiconfig
html::submit_button('apply', 'Apply')));
$t->set_var('cancel', html::submit_button('cancel', 'Cancel').'');
+ $GLOBALS['egw_info']['flags']['app_header'] = lang('Site configuration').
+ ($appname != 'admin' ? ': '.lang($appname) : '');
+
// render the page
$GLOBALS['egw']->framework->render(
''.