different calls to display_section to work in HEAD and 0.9.14

This commit is contained in:
Ralf Becker 2002-11-17 01:34:36 +00:00
parent 6df27ba200
commit f1367446d0
2 changed files with 11 additions and 4 deletions

View File

@ -19,6 +19,10 @@
); );
//Do not modify below this line //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);
} }
?> ?>

View File

@ -14,14 +14,17 @@
{ {
// Only Modify the $file and $title variables..... // Only Modify the $file and $title variables.....
$title = $appname;
$file = array( $file = array(
'Preferences' => $GLOBALS['phpgw']->link('/index.php','menuaction=infolog.uiinfolog.preferences'), 'Preferences' => $GLOBALS['phpgw']->link('/index.php','menuaction=infolog.uiinfolog.preferences'),
'Grant Access' => $GLOBALS['phpgw']->link('/index.php','menuaction=preferences.uiaclprefs.index&acl_app='.$appname), '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') '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 //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);
} }
?> ?>