Ignore:
Timestamp:
04/16/10 18:58:38 (14 years ago)
Author:
rodsouza
Message:

Ticket #1009 - Verificando a inclusão de javascript para que seja feita apenas uma vez.

File:
1 edited

Legend:

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

    r2576 r2578  
    140140                                                                                        $script .= file_get_contents($filePath).";\n"; 
    141141                                                                                } 
    142                                                                         }        
     142                                                                        } 
    143143                                                                        else 
    144144                                                                        { 
     145                                                                                $_file = PHPGW_INCLUDE_ROOT . SEP . $app . SEP . 'js' . SEP . $pkg . SEP. $file . '.js'; 
     146 
    145147                                                                                $links .= '<script type="text/javascript" src="' 
    146148                                                                                        . $GLOBALS['phpgw_info']['server']['webserver_url'] 
    147                                                                                         . "/$app/js/$pkg/$file" . '.js?' . microtime( true ) . '">' 
     149                                                                                        . "/$app/js/$pkg/$file" . '.js?' . filemtime( $_file ) . '">' 
    148150                                                                                        . "</script>\n"; 
    149151                                                                        } 
Note: See TracChangeset for help on using the changeset viewer.