From 9a7cbb062c7c98f9a462bd8f78c80e29d6b1e505 Mon Sep 17 00:00:00 2001 From: Ralf Becker Date: Fri, 3 Jul 2015 12:43:43 +0000 Subject: [PATCH] show nonav icon in admin tree too, if app has not navbar icon --- admin/inc/class.admin_ui.inc.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/admin/inc/class.admin_ui.inc.php b/admin/inc/class.admin_ui.inc.php index be007349fd..35e175df5e 100644 --- a/admin/inc/class.admin_ui.inc.php +++ b/admin/inc/class.admin_ui.inc.php @@ -396,7 +396,8 @@ class admin_ui $path .= ($path == '/' ? '' : '/').$part; if (!isset($parent[$path])) { - $icon = etemplate_widget_tree::imagePath($part == 'apps' ? common::image('phpgwapi', 'home') : common::image($part, 'navbar')); + $icon = etemplate_widget_tree::imagePath($part == 'apps' ? common::image('phpgwapi', 'home') : + (($i=common::image($part, 'navbar')) ? $i : common::image('phpgwapi', 'nonav'))); $parent[$path] = array( 'id' => $path, 'text' => $part == 'apps' ? lang('Applications') : lang($part),