From 176bea18084ece1d0886627e4d0a64d9e4c5ec89 Mon Sep 17 00:00:00 2001 From: hickert Date: Fri, 19 Dec 2008 13:45:28 +0000 Subject: [PATCH] Added ie workarround check git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@13324 594d385d-05f5-0310-b6e9-bd551577e9d8 --- gosa-core/html/helpviewer.php | 1 + gosa-core/html/index.php | 1 + gosa-core/html/logout.php | 1 + gosa-core/html/main.php | 1 + gosa-core/ihtml/themes/default/headers.tpl | 2 ++ 5 files changed, 6 insertions(+) diff --git a/gosa-core/html/helpviewer.php b/gosa-core/html/helpviewer.php index f9b72d1bf..bb1300725 100644 --- a/gosa-core/html/helpviewer.php +++ b/gosa-core/html/helpviewer.php @@ -116,6 +116,7 @@ if(session::global_is_set('current_class_for_help')){ if($helpdir == ""){ $smarty->assign("help_contents","

"._("There is no helpfile specified for this class"))."

"; + $smarty->assign("iePngWorkaround", $config->get_cfg_value("iePngWorkaround", FALSE)); $header= "".$smarty->fetch(get_template_path('headers.tpl')); $display= ( $header.$smarty->fetch(get_template_path('help.tpl'))); echo $display; diff --git a/gosa-core/html/index.php b/gosa-core/html/index.php index 137235b68..d66647ea3 100644 --- a/gosa-core/html/index.php +++ b/gosa-core/html/index.php @@ -90,6 +90,7 @@ function displayLogin() $smarty->assign("php_errors", ""); } $smarty->assign("msg_dialogs", msg_dialog::get_dialogs()); + $smarty->assign("iePngWorkaround", $config->get_cfg_value("iePngWorkaround", FALSE)); $smarty->display (get_template_path('headers.tpl')); $smarty->assign("version",get_gosa_version()); $smarty->display(get_template_path('login.tpl')); diff --git a/gosa-core/html/logout.php b/gosa-core/html/logout.php index fd4bb903d..d5ef67d4a 100644 --- a/gosa-core/html/logout.php +++ b/gosa-core/html/logout.php @@ -80,6 +80,7 @@ if (isset($_GET['request'])){ if (isset($config) && $config->get_cfg_value("htaccessAuthentication") == "true"){ /* Else notice that the user has to close the browser... */ + $smarty->assign("iePngWorkaround", FALSE); $smarty->display (get_template_path('headers.tpl')); $smarty->display (get_template_path('logout-close.tpl')); exit; diff --git a/gosa-core/html/main.php b/gosa-core/html/main.php index ed2b4ffa3..10a11b05c 100644 --- a/gosa-core/html/main.php +++ b/gosa-core/html/main.php @@ -303,6 +303,7 @@ $plist->gen_menu(); $smarty->assign ("menu", $plist->menu); $smarty->assign ("plug", "$plug"); +$smarty->assign("iePngWorkaround", $config->get_cfg_value("iePngWorkaround", FALSE)); $header= "".$smarty->fetch(get_template_path('headers.tpl')); /* React on clicks */ diff --git a/gosa-core/ihtml/themes/default/headers.tpl b/gosa-core/ihtml/themes/default/headers.tpl index b52a00abf..d21dea2a8 100644 --- a/gosa-core/ihtml/themes/default/headers.tpl +++ b/gosa-core/ihtml/themes/default/headers.tpl @@ -20,7 +20,9 @@ +{if $iePngWorkaround} +{/if} -- 2.30.2