Changeset 2664


Ignore:
Timestamp:
04/29/10 11:49:52 (14 years ago)
Author:
amuller
Message:

Ticket #1044 - Arruma caminhos relativos e absolutos utilizando o caminho absoluto

File:
1 edited

Legend:

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

    r2648 r2664  
    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 .= '/';   
    4348                        if ($GLOBALS['phpgw_info']['server']['csspacker'] == "True") 
    4449                                  foreach($this->files as $cssFile) 
     
    4651                                          if (!file_exists(PHPGW_SERVER_ROOT.SEP.$cssFile."pack.css")) 
    4752                                                $this->create_pack($cssFile); 
    48                                           $out .= "\n\t\t<link href='".$cssFile."pack.css' type='text/css' rel='StyleSheet'>"; 
     53                                          $out .= "\n\t\t<link href='".$path.$cssFile."pack.css' type='text/css' rel='StyleSheet'>"; 
    4954                                           
    5055                                  } 
    5156                          else 
    5257                                  foreach($this->files as $cssFile) 
    53                                           $out .= "\n\t\t<link href='".$cssFile."' type='text/css' rel='StyleSheet'>"; 
     58                                  { 
     59                                          $_SESSION['debug'][] = "/".$cssFile; 
     60                                          $out .= "\n\t\t<link href='".$path.$cssFile."' type='text/css' rel='StyleSheet'>"; 
     61                                  } 
    5462                          return $out; 
    5563                } 
Note: See TracChangeset for help on using the changeset viewer.