diff --git a/infolog/inc/class.infolog_hooks.inc.php b/infolog/inc/class.infolog_hooks.inc.php index ffe0809755..123a99968f 100644 --- a/infolog/inc/class.infolog_hooks.inc.php +++ b/infolog/inc/class.infolog_hooks.inc.php @@ -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'), - 'link'=>false, - 'icon' => false - ) - )); - } + display_sidebox($appname,lang('Favorites'),array( + array( + 'no_lang' => true, + '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' )),