From 9098612395d7c5794b35523613e5b7718d870483 Mon Sep 17 00:00:00 2001 From: seek3r Date: Mon, 8 Jan 2001 20:04:37 +0000 Subject: [PATCH] fixed red button logic problem --- phpgwapi/templates/verdilak/navbar.inc.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/phpgwapi/templates/verdilak/navbar.inc.php b/phpgwapi/templates/verdilak/navbar.inc.php index 5ef8643dd0..a307346581 100644 --- a/phpgwapi/templates/verdilak/navbar.inc.php +++ b/phpgwapi/templates/verdilak/navbar.inc.php @@ -45,13 +45,13 @@ $tpl->set_var("help_link",$phpgw_info["navbar"]["about"]["url"]); $ir = $phpgw_info["server"]["webserver_url"] . "/phpgwapi/templates/verdilak/images"; - if (ereg($phpgw_info["server"]["webserver_url"] . "/index.php",$PHP_SELF)) { + if ($phpgw_info["flags"]["currentapp"] == "home") { $tpl->set_var("welcome_img",$ir . "/welcome-red.gif"); } else { $tpl->set_var("welcome_img",$ir . "/welcome-grey.gif"); } - if (ereg("preferences",$PHP_SELF)) { + if ($phpgw_info["flags"]["currentapp"] == "preferences") { $tpl->set_var("preferences_img",$ir . "/preferences-red.gif"); } else { $tpl->set_var("preferences_img",$ir . "/preferences-grey.gif");