mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-01-14 18:08:21 +01:00
fixed red button logic problem
This commit is contained in:
parent
b9a41b61c4
commit
9098612395
@ -45,13 +45,13 @@
|
|||||||
$tpl->set_var("help_link",$phpgw_info["navbar"]["about"]["url"]);
|
$tpl->set_var("help_link",$phpgw_info["navbar"]["about"]["url"]);
|
||||||
|
|
||||||
$ir = $phpgw_info["server"]["webserver_url"] . "/phpgwapi/templates/verdilak/images";
|
$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");
|
$tpl->set_var("welcome_img",$ir . "/welcome-red.gif");
|
||||||
} else {
|
} else {
|
||||||
$tpl->set_var("welcome_img",$ir . "/welcome-grey.gif");
|
$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");
|
$tpl->set_var("preferences_img",$ir . "/preferences-red.gif");
|
||||||
} else {
|
} else {
|
||||||
$tpl->set_var("preferences_img",$ir . "/preferences-grey.gif");
|
$tpl->set_var("preferences_img",$ir . "/preferences-grey.gif");
|
||||||
|
Loading…
Reference in New Issue
Block a user