Ignore:
Timestamp:
05/10/10 11:47:10 (14 years ago)
Author:
rodsouza
Message:

Ticket #1058 - Corrigindo problema no calendario para adicionar evento e na visao diaria.

File:
1 edited

Legend:

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

    r2628 r2748  
    267267                function get_source( $param ) 
    268268                { 
     269                        ob_start( ); 
    269270                        $source = ''; 
    270271                        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                                } 
    272280 
    273281                        echo $source; 
Note: See TracChangeset for help on using the changeset viewer.