Changeset 4474


Ignore:
Timestamp:
05/20/11 14:13:42 (13 years ago)
Author:
airton
Message:

Ticket #1820 - Dinamizar utilizacao de edit.js, publicView.php - corrigir erro em AddAttach? no IE - r4459

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sandbox/2.2.0.2/calendar/inc/hook_sidebox_menu.inc.php

    r923 r4474  
    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.