From 19351f85bed01a35a2207f270d14b02c957150e4 Mon Sep 17 00:00:00 2001 From: garvinhicking Date: Tue, 27 Dec 2005 12:48:04 +0000 Subject: [PATCH] better fix? Dang, I'm too short on time ;) --- serendipity.css.php | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/serendipity.css.php b/serendipity.css.php index aa1be41..17dea0d 100644 --- a/serendipity.css.php +++ b/serendipity.css.php @@ -31,7 +31,7 @@ switch($css_mode) { break; } -function serendipity_printStylesheet($file) { +function serendipity_printStylesheet($file, $dir = '') { global $serendipity; return str_replace( array( @@ -40,7 +40,7 @@ function serendipity_printStylesheet($file) { ), array( - dirname($file) . '/', + dirname($dir) . '/', LANG_DIRECTION ), @@ -65,7 +65,10 @@ if (IS_installed === false) { } -$out = serendipity_printStylesheet(serendipity_getTemplateFile($css_file, 'serendipityPath')); +$out = serendipity_printStylesheet( + serendipity_getTemplateFile($css_file, 'serendipityPath'), + serendipity_getTemplateFile($css_file, '') +); serendipity_plugin_api::hook_event($css_hook, $out); -- 2.39.5