From f1367446d07891a1ea80043695fa94f33665fcfc Mon Sep 17 00:00:00 2001 From: Ralf Becker Date: Sun, 17 Nov 2002 01:34:36 +0000 Subject: [PATCH] different calls to display_section to work in HEAD and 0.9.14 --- infolog/inc/hook_admin.inc.php | 8 ++++++-- infolog/inc/hook_preferences.inc.php | 7 +++++-- 2 files changed, 11 insertions(+), 4 deletions(-) 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); } ?>