Ignore:
Timestamp:
04/20/10 16:39:19 (14 years ago)
Author:
rodsouza
Message:

Ticket #1009 - Garantindo que a variável URL_SERVER esteja populada.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/phpgwapi/inc/class.common.inc.php

    r2561 r2608  
    388388                                        $GLOBALS['phpgw_info']['flags']['java_script_thirst'] .= '<script type="text/javascript">var URL_SERVER = "' 
    389389                                                . $GLOBALS[ 'phpgw_info' ][ 'server' ][ 'webserver_url' ] . '";' 
    390                                                 . 'var template = "' . $GLOBALS[ 'phpgw_info' ][ 'server' ][ 'template_set' ] . '";</script>'; 
     390                                                . 'var template = "' . ( ( ! empty( $GLOBALS[ 'phpgw_info' ][ 'server' ][ 'template_set' ] ) ) ? $GLOBALS[ 'phpgw_info' ][ 'server' ][ 'template_set' ] : '/' ) 
     391                                                . '";</script>'; 
    391392 
    392393                                        $GLOBALS[ 'phpgw' ] -> js -> validate_file( 'wz_dragdrop', 'wz_dragdrop', NULL, true ); 
Note: See TracChangeset for help on using the changeset viewer.