Changeset 4474
- Timestamp:
- 05/20/11 14:13:42 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sandbox/2.2.0.2/calendar/inc/hook_sidebox_menu.inc.php
r923 r4474 24 24 25 25 $menu_title = $GLOBALS['phpgw_info']['apps'][$appname]['title'] . ' '. lang('Menu'); 26 27 $publicview_php_template_path = $GLOBALS['phpgw_info']['user']['preferences']['common']['template_set']; 28 if (!file_exists($GLOBALS['phpgw_info']['server']['webserver_url'].'/calendar/templates/'.$publicview_php_template_path.'/publicView.php')) 29 $publicview_php_template_path = 'default'; 30 26 31 $file = Array( 27 32 'New Entry' => $GLOBALS['phpgw']->link('/index.php','menuaction=calendar.uicalendar.add'), … … 36 41 'Import'=>$GLOBALS['phpgw']->link('/index.php','menuaction=calendar.uiicalendar.import'), 37 42 'Report of hours'=>$GLOBALS['phpgw']->link('/calendar/inc/hourReport.php',''), 38 'Public Calendars'=> "javascript:openwindow('calendar/templates/".$ GLOBALS['phpgw_info']['user']['preferences']['common']['template_set']."/publicView.php')"43 'Public Calendars'=> "javascript:openwindow('calendar/templates/".$publicview_php_template_path."/publicView.php')" 39 44 ); 40 45 display_sidebox($appname,$menu_title,$file);
Note: See TracChangeset
for help on using the changeset viewer.