Fix favorites for infolog

This commit is contained in:
Nathan Gray 2013-08-26 15:10:33 +00:00
parent aa8a848871
commit 591bb48410

View File

@ -87,19 +87,14 @@ class infolog_hooks
if ($location == 'sidebox_menu')
{
// Magic etemplate2 favorites menu (from nextmatch widget)
$et = new ReflectionClass('etemplate');
$is_et2 = ($et->isSubclassOf(new ReflectionClass('etemplate_widget')));
if($is_et2)
{
display_sidebox($appname,lang('Favorites'),array(
array(
'no_lang' => true,
'text'=> etemplate_widget_nextmatch::favorite_list('infolog','infolog.infolog_ui.get_rows'),
'text'=> etemplate_widget_nextmatch::favorite_list($appname,'infolog.infolog_ui.get_rows'),
'link'=>false,
'icon' => false
)
));
}
$file = array(
'infolog list' => egw::link('/index.php',array(
'menuaction' => 'infolog.infolog_ui.index' )),