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:26 +00:00
parent b57d51138e
commit a5b36d48e0

View File

@ -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),