Changeset 2664 for trunk/phpgwapi/inc
- Timestamp:
- 04/29/10 11:49:52 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/phpgwapi/inc/class.css.inc.php
r2648 r2664 41 41 function get_css() 42 42 { 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 .= '/'; 43 48 if ($GLOBALS['phpgw_info']['server']['csspacker'] == "True") 44 49 foreach($this->files as $cssFile) … … 46 51 if (!file_exists(PHPGW_SERVER_ROOT.SEP.$cssFile."pack.css")) 47 52 $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'>"; 49 54 50 55 } 51 56 else 52 57 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 } 54 62 return $out; 55 63 }
Note: See TracChangeset
for help on using the changeset viewer.