Ignore:
Timestamp:
05/19/11 14:52:35 (13 years ago)
Author:
rafaelraymundo
Message:

Ticket #1895 - dinamizar utilização de edit.js, publicView.php - corrigir erro em addAttach no IE

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2.2.0.1/calendar/inc/hook_sidebox_menu.inc.php

    r923 r4459  
    2424 
    2525        $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 
    2631        $file = Array( 
    2732                'New Entry'   => $GLOBALS['phpgw']->link('/index.php','menuaction=calendar.uicalendar.add'), 
     
    3641                'Import'=>$GLOBALS['phpgw']->link('/index.php','menuaction=calendar.uiicalendar.import'), 
    3742                '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')" 
    3944        ); 
    4045        display_sidebox($appname,$menu_title,$file); 
Note: See TracChangeset for help on using the changeset viewer.