Index: branches/5.0.x/core/units/admin/admin_tag_processor.php =================================================================== diff -u -r12117 -r12202 --- branches/5.0.x/core/units/admin/admin_tag_processor.php (.../admin_tag_processor.php) (revision 12117) +++ branches/5.0.x/core/units/admin/admin_tag_processor.php (.../admin_tag_processor.php) (revision 12202) @@ -1,6 +1,6 @@ Conn->GetRow('SELECT * FROM '.TABLE_PREFIX.'Skins WHERE IsPrimary = 1'); } - $css_path = (defined('WRITEABLE') ? WRITEABLE : FULL_PATH. DIRECTORY_SEPARATOR . 'kernel') . DIRECTORY_SEPARATOR . 'user_files'; - $css_url = $this->Application->BaseURL(defined('WRITEBALE_BASE') ? str_replace(DIRECTORY_SEPARATOR, '/', WRITEBALE_BASE) : '/kernel') . 'user_files/'; + $css_path = WRITEABLE . DIRECTORY_SEPARATOR . 'user_files'; + $css_url = $this->Application->BaseURL( str_replace(DIRECTORY_SEPARATOR, '/', WRITEBALE_BASE) ) . 'user_files/'; $type = array_key_exists('type', $params) ? $params['type'] : false; if ($type == 'logo') { @@ -826,7 +826,7 @@ $style_name = mb_strtolower( $style['Name'] ); - if( file_exists($css_path.'/'.'admin-'.$style_name.'-'.$last_compiled.'.css') ) + if( file_exists($css_path . '/' . 'admin-' . $style_name . '-' . $last_compiled . '.css') ) { $ret = $css_url.'admin-'.$style_name.'-'.$last_compiled.'.css';