Ignore:
Timestamp:
04/28/10 08:47:18 (14 years ago)
Author:
amuller
Message:

Ticket #1044 - Adicionando suporte no expressoMail

File:
1 edited

Legend:

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

    r2644 r2645  
    13271327                        if ( @ isset( $GLOBALS[ 'phpgw_info' ][ 'flags' ][ 'currentapp' ] ) ) 
    13281328                        {                
    1329                                 require_once('class.css.inc.php'); 
    1330                                 $cssObj = new css(); 
     1329                                $path = ( ! empty( $GLOBALS[ 'phpgw_info' ][ 'server' ][ 'webserver_url' ] ) ) ?  
     1330                                        $GLOBALS[ 'phpgw_info' ][ 'server' ][ 'webserver_url' ] : '/';  
     1331 
     1332                                if ( strpos( $path, '/' ) != ( strlen( $path ) - 1 ) )  
     1333                                        $path .= '/';  
    13311334 
    13321335                                $template = $GLOBALS[ 'phpgw_info' ][ 'server' ][ 'template_set' ]; 
    13331336 
    1334                                 $cssObj->validate_file( "phpgwapi/templates/".$template."/css/base.css"); 
    1335                                 $cssObj->validate_file( "phpgwapi/templates/".$template."/css/".$GLOBALS[ 'phpgw_info' ][ 'user' ][ 'preferences' ][ 'common' ][ 'theme' ].".css"); 
    1336                                 $cssObj->validate_file( $GLOBALS[ 'phpgw_info' ][ 'flags' ][ 'currentapp' ]."/templates/".$template."/css/".$GLOBALS[ 'phpgw_info' ][ 'user' ][ 'preferences' ][ 'common' ][ 'theme' ].".css"); 
    1337                                 $cssObj->validate_file( $GLOBALS[ 'phpgw_info' ][ 'flags' ][ 'currentapp' ]."/templates/".$template."/css/app.css"); 
     1337                                $GLOBALS['phpgw']->css->validate_file( $path."phpgwapi/templates/".$template."/css/base.css"); 
     1338                                $GLOBALS['phpgw']->css->validate_file( $path."phpgwapi/templates/".$template."/css/".$GLOBALS[ 'phpgw_info' ][ 'user' ][ 'preferences' ][ 'common' ][ 'theme' ].".css"); 
     1339                                $GLOBALS['phpgw']->css->validate_file( $path.$GLOBALS[ 'phpgw_info' ][ 'flags' ][ 'currentapp' ]."/templates/".$template."/css/".$GLOBALS[ 'phpgw_info' ][ 'user' ][ 'preferences' ][ 'common' ][ 'theme' ].".css"); 
     1340                                $GLOBALS['phpgw']->css->validate_file( $path.$GLOBALS[ 'phpgw_info' ][ 'flags' ][ 'currentapp' ]."/templates/".$template."/css/app.css"); 
    13381341                                 
    1339                                 $tpl -> set_var( 'css_file',  $cssObj->get_css() ); 
     1342                                $tpl -> set_var( 'css_file',  $GLOBALS['phpgw']->css->get_css() ); 
    13401343                        } 
    13411344 
Note: See TracChangeset for help on using the changeset viewer.