Changeset 2623 for trunk/phpgwapi/inc/class.javascript.inc.php
- Timestamp:
- 04/23/10 10:41:56 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/phpgwapi/inc/class.javascript.inc.php
r2608 r2623 121 121 if(!empty($this->files) && is_array($this->files)) 122 122 { 123 $links = " <!--JS Imports from phpGW javascript class -->\n";123 $links = "\n\t\t<!--JS Imports from phpGW javascript class -->"; 124 124 foreach($this->files as $app => $packages) 125 125 { … … 145 145 else 146 146 { 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 ) ); 151 149 } 152 150 … … 264 262 return true; 265 263 } 264 error_log( $_file . "\n\n", 3, '/tmp/log' ); 266 265 return false; 267 266 }
Note: See TracChangeset
for help on using the changeset viewer.