diff --git a/infolog/inc/hook_admin.inc.php b/infolog/inc/hook_admin.inc.php index ba6c1a184c..ed6b835408 100644 --- a/infolog/inc/hook_admin.inc.php +++ b/infolog/inc/hook_admin.inc.php @@ -19,6 +19,10 @@ ); //Do not modify below this line - display_section($appname,$file); + list($ver,$mayor,$minor,$ref) = explode('.',$GLOBALS['phpgw_info']['server']['versions']['phpgwapi']); + if ($minor > 14) + display_section($appname,$file); + else + display_section($appname,$appname,$file); } -?> \ No newline at end of file +?> diff --git a/infolog/inc/hook_preferences.inc.php b/infolog/inc/hook_preferences.inc.php index b574abf11d..d2c92d6cc2 100644 --- a/infolog/inc/hook_preferences.inc.php +++ b/infolog/inc/hook_preferences.inc.php @@ -14,14 +14,17 @@ { // Only Modify the $file and $title variables..... - $title = $appname; $file = array( 'Preferences' => $GLOBALS['phpgw']->link('/index.php','menuaction=infolog.uiinfolog.preferences'), 'Grant Access' => $GLOBALS['phpgw']->link('/index.php','menuaction=preferences.uiaclprefs.index&acl_app='.$appname), 'Edit Categories' => $GLOBALS['phpgw']->link('/index.php','menuaction=preferences.uicategories.index&cats_app=' . $appname . '&cats_level=True&global_cats=True') ); //Do not modify below this line - display_section($appname,$title,$file); + list($ver,$mayor,$minor,$ref) = explode('.',$GLOBALS['phpgw_info']['server']['versions']['phpgwapi']); + if ($minor > 14) + display_section($appname,$file); + else + display_section($appname,$appname,$file); } ?>