Ignore:
Timestamp:
04/23/10 10:41:56 (14 years ago)
Author:
rodsouza
Message:

Ticket #1009 - Organizando o HTML do template default.

File:
1 edited

Legend:

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

    r2608 r2623  
    121121                        if(!empty($this->files) && is_array($this->files)) 
    122122                        { 
    123                                 $links = "<!--JS Imports from phpGW javascript class -->\n"; 
     123                                $links = "\n\t\t<!--JS Imports from phpGW javascript class -->"; 
    124124                                foreach($this->files as $app => $packages) 
    125125                                { 
     
    145145                                                                        else 
    146146                                                                        { 
    147                                                                                 $links .= '<script type="text/javascript" src="' 
    148                                                                                         . $GLOBALS['phpgw_info']['server']['webserver_url'] 
    149                                                                                         . "/$app/js/$pkg/$file" . '.js?' . filemtime( $jsFilePath ) . '">' 
    150                                                                                         . "</script>\n"; 
     147                                                                                $_script = '<script type="text/javascript" src="%s/%s/js/%s/%s.js?%d"></script>'; 
     148                                                                                $links .= "\n\t\t" . sprintf( $_script, $GLOBALS[ 'phpgw_info' ][ 'server' ][ 'webserver_url' ], $app, $pkg, $file, filemtime( $jsFilePath ) ); 
    151149                                                                        } 
    152150 
     
    264262                                return true; 
    265263                        } 
     264                        error_log( $_file . "\n\n", 3, '/tmp/log' ); 
    266265                        return false; 
    267266                } 
Note: See TracChangeset for help on using the changeset viewer.