Changeset 2608 for trunk/phpgwapi


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.

Location:
trunk/phpgwapi/inc
Files:
2 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 ); 
  • trunk/phpgwapi/inc/class.javascript.inc.php

    r2595 r2608  
    33  * eGroupWare API - JavaScript                                              * 
    44  * Written by Dave Hall skwashd at phpgroupware.org                         * 
    5   * Copyright (C) 2003 Free Software Foundation Inc                          *           
     5  * Copyright (C) 2003 Free Software Foundation Inc                          * 
    66  * -------------------------------------------------------------------------* 
    77  * This library is part of the eGroupWare API                               * 
    8   * http://www.egroupware.org/api                                            *  
     8  * http://www.egroupware.org/api                                            * 
    99  * ------------------------------------------------------------------------ * 
    1010  *  This program is Free Software; you can redistribute it and/or modify it * 
Note: See TracChangeset for help on using the changeset viewer.