show nonav icon in admin tree too, if app has not navbar icon

This commit is contained in:
Ralf Becker 2015-07-03 12:43:43 +00:00
parent 2744ec2d22
commit 9a7cbb062c

View File

@ -396,7 +396,8 @@ class admin_ui
$path .= ($path == '/' ? '' : '/').$part; $path .= ($path == '/' ? '' : '/').$part;
if (!isset($parent[$path])) 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( $parent[$path] = array(
'id' => $path, 'id' => $path,
'text' => $part == 'apps' ? lang('Applications') : lang($part), 'text' => $part == 'apps' ? lang('Applications') : lang($part),