Changeset 2748 for trunk/phpgwapi/inc/class.javascript.inc.php
- Timestamp:
- 05/10/10 11:47:10 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/phpgwapi/inc/class.javascript.inc.php
r2628 r2748 267 267 function get_source( $param ) 268 268 { 269 ob_start( ); 269 270 $source = ''; 270 271 foreach( explode( ';', $param[ 'source' ] ) as $script ) 271 $source .= file_get_contents( realpath( dirname( __FILE__ ) . '/../..' ) . $script ); 272 if ( strrpos( $script, '.php' ) != strlen( $script ) - 4 ) 273 $source .= file_get_contents( realpath( dirname( __FILE__ ) . '/../..' ) . $script ); 274 else 275 { 276 include_once realpath( dirname( __FILE__ ) . '/../..' ) . $script; 277 $source .= ob_get_contents( ); 278 ob_clean( ); 279 } 272 280 273 281 echo $source;
Note: See TracChangeset
for help on using the changeset viewer.