Changeset 2748 for trunk/phpgwapi/inc
- Timestamp:
- 05/10/10 11:47:10 (14 years ago)
- Location:
- trunk/phpgwapi/inc
- Files:
-
- 2 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; -
trunk/phpgwapi/inc/jscalendar-setup.php
r2 r2748 24 24 ); 25 25 26 include ('../../header.inc.php');26 include_once dirname( __FILE__ ) . '/../../header.inc.php'; 27 27 header('Content-type: text/javascript; charset='.$GLOBALS['phpgw']->translation->charset()); 28 28 $GLOBALS['phpgw']->translation->add_app('jscalendar');
Note: See TracChangeset
for help on using the changeset viewer.