Index: trunk/kernel/units/themes/themes_tag_processor.php =================================================================== diff -u -r2469 -r2600 --- trunk/kernel/units/themes/themes_tag_processor.php (.../themes_tag_processor.php) (revision 2469) +++ trunk/kernel/units/themes/themes_tag_processor.php (.../themes_tag_processor.php) (revision 2600) @@ -1,22 +1,22 @@ Application->recallObject( $this->getPrefixSpecial(), $this->Prefix, $params ); - + $css_url = $this->Application->BaseURL('/kernel/stylesheets'); - $css_path = rtrim( str_replace( $this->Application->BaseURL(), DOC_ROOT.BASE_PATH.'/', $css_url), '/' ); - + $css_path = rtrim( str_replace( $this->Application->BaseURL(), FULL_PATH.'/', $css_url), '/' ); + $last_compiled = $object->GetDBField('LastCompiled'); - + $style_name = strtolower( $object->GetDBField('StyleName') ); - + if( file_exists($css_path.'/'.$style_name.'-'.$last_compiled.'.css') ) { $ret = $css_url.'/'.$style_name.'-'.$last_compiled.'.css'; - + } else { @@ -34,9 +34,9 @@ } if($last_compiled) $ret = $css_url.'/'.$style_name.'-'.$last_compiled.'.css'; } - + if (isset($params['file_only'])) return $ret; - + return ''; } }