[ingo] PATCH RELENG_1: Menu icons for other apps not shown
Joerg Friedrich
Joerg.Dieter.Friedrich at uni-konstanz.de
Wed Jun 25 08:38:30 PDT 2003
diff -u ingo/templates/menu/menu.inc ingo-merkur/templates/menu/menu.inc
--- ingo/templates/menu/menu.inc 2003-04-27 23:14:28.000000000 +0200
+++ ingo-merkur/templates/menu/menu.inc 2003-06-25 17:36:45.000000000 +0200
@@ -18,6 +18,15 @@
Menu::printItem(Horde::applicationUrl('prefs.php'), _("Options"), 'prefs.gif', $registry->getParam('graphics', 'horde'));
}
+/* Horde menu items */
+if ($conf['problems']['enabled']) {
+ include_once HORDE_BASE . '/lib/Identity.php';
+ $prob_identity = new Identity();
+ Menu::printItem(Horde::url($registry->getParam('webroot', 'horde') . '/problem.php?email='+. urlencode($prob_identity->getValue('from_addr')) . '&name=' . urlencode($prob_identity->getValue('fullname')) . '&return_url=' . urlencode(Horde::selfURL(true))), _("Problem?"), 'problem.gif', $registry->getParam('graphics', 'horde'));
+}
+
+
/* Additional site-specific menu items */
if (!empty($additional_items)) echo $additional_items;
@@ -30,8 +39,7 @@
if (isset($conf['menu']['apps']) && is_array($conf['menu']['apps'])) {
foreach ($conf['menu']['apps'] as $app) {
Menu::printItem(Horde::url($registry->getInitialPage($app)),
- $registry->getParam('name', $app), $registry->getParam('
-icon', $app), '');
+ $registry->getParam('name', $app), $registry->getParam('icon', $app), '');
}
}
--
Jörg Friedrich
Das ist ein Megakonzern.
Die machen hauptsächlich in Zeitschriften.
-- Martin Schulze
More information about the ingo
mailing list