diff --git a/resources/inc/class.resources_hooks.inc.php b/resources/inc/class.resources_hooks.inc.php index 59a0086a13..2cc048c5ae 100644 --- a/resources/inc/class.resources_hooks.inc.php +++ b/resources/inc/class.resources_hooks.inc.php @@ -20,16 +20,24 @@ class resources_hooks { $appname = 'resources'; $location = is_array($args) ? $args['location'] : $args; - + if ($location == 'sidebox_menu') { - $file = array( - 'resources list' => $GLOBALS['egw']->link('/index.php',array( - 'menuaction' => 'resources.ui_resources.index' )), - /*'add' => $GLOBALS['egw']->link('/index.php',array( - 'menuaction' => 'resources.ui_resources.edit' ))*/ + $title = $GLOBALS['egw_info']['apps']['resources']['title'].' '.lang('Menu'); + $file[] = array( + 'text' => lang('resources list'), + 'no_lang' => true, + 'link' => $GLOBALS['egw']->link('/index.php',array('menuaction' => 'resources.ui_resources.index' )), +// 'icon' => ); - display_sidebox($appname,$GLOBALS['egw_info']['apps']['resources']['title'].' '.lang('Menu'),$file); + $file[] = array( + 'text' => ''.lang('add resource').'', + 'no_lang' => true, + 'link' => false + ); + display_sidebox($appname,$title,$file); } /* if ($GLOBALS['egw_info']['user']['apps']['preferences'] && $location != 'admin')