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