diff --git a/calendar/inc/hook_preferences.inc.php b/calendar/inc/hook_preferences.inc.php index 840139d88a..29be1dedc3 100644 --- a/calendar/inc/hook_preferences.inc.php +++ b/calendar/inc/hook_preferences.inc.php @@ -13,14 +13,12 @@ { // Only Modify the $file and $title variables..... $title = $appname; - $file = Array( - 'Calendar preferences' => $phpgw->link('/index.php', - Array( - 'menuaction' => 'calendar.uipreferences.preferences' - ) - ), - 'Grant Access' => $phpgw->link('/preferences/acl_preferences.php','acl_app='.$appname), - 'Edit Categories' => $phpgw->link('/preferences/categories.php','cats_app='.$appname.'&global_cats=True') + $file = array( + 'Calendar preferences' => $GLOBALS['phpgw']->link('/index.php',array( + 'menuaction' => 'calendar.uipreferences.preferences' + )), + 'Grant Access' => $GLOBALS['phpgw']->link('/preferences/acl_preferences.php','acl_app='.$appname), + 'Edit Categories' => $GLOBALS['phpgw']->link('/preferences/categories.php','cats_app='.$appname.'&global_cats=True') ); //Do not modify below this line display_section($appname,$title,$file); diff --git a/filemanager/inc/hook_preferences.inc.php b/filemanager/inc/hook_preferences.inc.php index 8c18c2655b..c6cb154aa6 100644 --- a/filemanager/inc/hook_preferences.inc.php +++ b/filemanager/inc/hook_preferences.inc.php @@ -15,7 +15,7 @@ // Only Modify the $file and $title variables..... $title = "PHPWebHosting"; $file = Array( - 'Preferences' => $phpgw->link('/phpwebhosting/preferences.php') + 'Preferences' => $GLOBALS['phpgw']->link('/phpwebhosting/preferences.php') ); //Do not modify below this line display_section($appname,$title,$file); diff --git a/infolog/inc/hook_preferences.inc.php b/infolog/inc/hook_preferences.inc.php index 97c932d9e9..ff650ef450 100644 --- a/infolog/inc/hook_preferences.inc.php +++ b/infolog/inc/hook_preferences.inc.php @@ -15,10 +15,10 @@ { // Only Modify the $file and $title variables..... $title = $appname; - $file = Array( - 'Preferences' => $phpgw->link('/index.php','menuaction=infolog.uiinfolog.preferences'), - 'Grant Access' => $phpgw->link('/preferences/acl_preferences.php','acl_app='.$appname), - 'Edit Categories' => $phpgw->link('/preferences/categories.php','cats_app='.$appname) + $file = array( + 'Preferences' => $GLOBALS['phpgw']->link('/index.php','menuaction=infolog.uiinfolog.preferences'), + 'Grant Access' => $GLOBALS['phpgw']->link('/preferences/acl_preferences.php','acl_app='.$appname), + 'Edit Categories' => $GLOBALS['phpgw']->link('/preferences/categories.php','cats_app='.$appname) ); //Do not modify below this line display_section($appname,$title,$file);