[dev] Patch for gollem/templates/menu/menu.inc
Joel Vandal
jvandal at infoteck.qc.ca
Fri Oct 3 13:49:40 PDT 2003
Hi,
With this patch, the Logout button will not be displayed if they have only 1 backend servers and that this server is set to hordeauth
Index: menu/menu.inc
===================================================================
RCS file: /repository/gollem/templates/menu/menu.inc,v
retrieving revision 1.29
diff -r1.29 menu.inc
28c28,30
< Menu::printItem(Horde::applicationUrl('login.php?reason=logout'), _("Logout"), 'logout.gif', $registry->getParam('graphics', 'horde'));
---
> if (count($GLOBALS['backends']) > 1 || (count($GLOBALS['backends']) == 1 && empty($GLOBALS['backends'][$backend_key]['hordeauth']))) {
> Menu::printItem(Horde::applicationUrl('login.php?reason=logout'), _("Logout"), 'logout.gif', $registry->getParam('graphics', 'horde'));
> }
--
Joel Vandal
More information about the dev
mailing list