Code

Fixed problem with quotes in names
[gosa.git] / gosa-core / html / main.php
index 66e16eb94ba5775cce4ad8a1e94a07fb620b522c..c088754c0c7bf3ada17570e5a0ee3913fd8f454a 100644 (file)
@@ -266,6 +266,7 @@ if (isset($_GET['reset'])){
 
 /* show web frontend */
 $smarty->assign ("date", date("l, dS F Y H:i:s O"));
+$smarty->assign ("lang", preg_replace('/_.*$/', '', $lang));
 $smarty->assign ("must", "<font class=\"must\">*</font>");
 if (isset($plug)){
   $plug= "?plug=$plug";
@@ -305,7 +306,6 @@ $smarty->assign ("plug", "$plug");
 
 $smarty->assign("iePngWorkaround", $config->get_cfg_value("iePngWorkaround","false" ) == "true");
 $smarty->assign("usePrototype", "false");
-$header= "<!-- headers.tpl-->".$smarty->fetch(get_template_path('headers.tpl'));
 
 /* React on clicks */
 if ($_SERVER["REQUEST_METHOD"] == "POST"){
@@ -408,7 +408,8 @@ if (isset($_POST['_channel_'])){
        $smarty->assign("channel", "");
 }
 
-$display= $header.$smarty->fetch(get_template_path('framework.tpl'));
+$display= "<!-- headers.tpl-->".$smarty->fetch(get_template_path('headers.tpl')).
+          $smarty->fetch(get_template_path('framework.tpl'));
 
 /* Save dialog filters and selected base in a cookie. 
    So we may be able to restore the filter an base settings on reload.