From: hickert Date: Wed, 21 Nov 2007 09:31:07 +0000 (+0000) Subject: Reenabled error messages X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=8a5628a01361859e3d09bf2b9eb89ed4815f5fc2;p=gosa.git Reenabled error messages git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@7840 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/html/main.php b/html/main.php index 50a3e87cf..1583904f7 100644 --- a/html/main.php +++ b/html/main.php @@ -393,11 +393,9 @@ if (isset($_SESSION['errors']) && $_SESSION['errors'] != ""){ $focus.= ''; } - $focus= ''; - - +$focus= ''; $smarty->assign("focus", $focus); $display= $header.$smarty->fetch(get_template_path('framework.tpl')); diff --git a/html/setup.php b/html/setup.php index d681cacf0..e98b41cfb 100644 --- a/html/setup.php +++ b/html/setup.php @@ -117,22 +117,33 @@ print_red(NULL); $smarty->assign("date", date("l, dS F Y H:i:s O")); $header= "".$smarty->fetch(get_template_path('setup_headers.tpl')); + + + +/* Set focus to the error button if we've an error message */ +$focus= ""; +if (isset($_SESSION['errors']) && $_SESSION['errors'] != ""){ + $focus= ''; +} + +$focus= ''; + /* show web frontend */ $smarty->assign("contents" , $display); $smarty->assign("navigation", $_SESSION['setup']->get_navigation_html()); $smarty->assign("header", $_SESSION['setup']->get_header_html()); -$smarty->assign("bottom", $_SESSION['setup']->get_bottom_html()); +$smarty->assign("bottom", $focus.$_SESSION['setup']->get_bottom_html()); +$smarty->assign("msg_dialogs", msg_dialog::get_dialogs()); if ($error_collector != ""){ $smarty->assign("php_errors", preg_replace("/%BUGBODY%/",$error_collector_mailto,$error_collector).""); } else { $smarty->assign("php_errors", ""); } -if (isset($_SESSION['errors'])){ - $smarty->assign("errors", $_SESSION['errors']); -}else{ - $smarty->assign("errors" , ""); -} $smarty->assign("version",get_gosa_version());