Ignore:
Timestamp:
04/27/10 09:54:22 (14 years ago)
Author:
rodsouza
Message:

Ticket #1009 - Mitigando problema com escopo do dominio.

File:
1 edited

Legend:

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

    r2628 r2630  
    386386                                                $GLOBALS['phpgw_info']['flags']['java_script_thirst'] = ''; 
    387387 
     388                                        $webserver_url = ( ! empty( $GLOBALS[ 'phpgw_info' ][ 'server' ][ 'webserver_url' ] ) ) ? 
     389                                                $GLOBALS[ 'phpgw_info' ][ 'server' ][ 'webserver_url' ] : '/'; 
     390 
     391                                        if ( strpos( $webserver_url, '/' ) != ( strlen( $webserver_url ) - 1 ) ) 
     392                                                $webserver_url .= '/'; 
     393 
    388394                                        $GLOBALS['phpgw_info']['flags']['java_script_thirst'] .= '<script type="text/javascript">' 
    389                                                 . 'var URL_SERVER = "' . $GLOBALS[ 'phpgw_info' ][ 'server' ][ 'webserver_url' ] . '";' 
     395                                                . 'var URL_SERVER = "' . $webserver_url . '";' 
    390396                                                . 'var template = "' . $GLOBALS[ 'phpgw_info' ][ 'server' ][ 'template_set' ] . '";</script>'; 
    391397 
Note: See TracChangeset for help on using the changeset viewer.