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.css.inc.php

    r2644 r2645  
    4141                function get_css() 
    4242                { 
    43                         $path = ( ! empty( $GLOBALS[ 'phpgw_info' ][ 'server' ][ 'webserver_url' ] ) ) ? 
    44                                 $GLOBALS[ 'phpgw_info' ][ 'server' ][ 'webserver_url' ] : '/'; 
    45  
    46                         if ( strpos( $path, '/' ) != ( strlen( $path ) - 1 ) ) 
    47                                 $path .= '/'; 
    48  
    4943                        if ($GLOBALS['phpgw_info']['server']['csspacker'] == "True") 
    5044                                  foreach($this->files as $cssFile) 
     
    5246                                          if (!file_exists(PHPGW_SERVER_ROOT.SEP.$cssFile."pack.css")) 
    5347                                                $this->create_pack($cssFile); 
    54                                           $out .= "\n\t\t<link href='".$path.$cssFile."pack.css' type='text/css' rel='StyleSheet'>"; 
     48                                          $out .= "\n\t\t<link href='".$cssFile."pack.css' type='text/css' rel='StyleSheet'>"; 
    5549                                           
    5650                                  } 
    5751                          else 
    5852                                  foreach($this->files as $cssFile) 
    59                                           $out .= "\n\t\t<link href='".$path.$cssFile."' type='text/css' rel='StyleSheet'>"; 
     53                                          $out .= "\n\t\t<link href='".$cssFile."' type='text/css' rel='StyleSheet'>"; 
    6054                          return $out; 
    6155                } 
     
    6357                function validate_file($file, $stack = false ) 
    6458                { 
    65                         if (file_exists(PHPGW_SERVER_ROOT . '/' . $file)) 
     59                        if (file_exists(PHPGW_SERVER_ROOT . SEP . $file)) 
    6660                                $this->files[] = $file; 
    6761                } 
Note: See TracChangeset for help on using the changeset viewer.