From f9059fe261f052f2ff2a7cbab5d9160648e2c73e Mon Sep 17 00:00:00 2001 From: garvinhicking Date: Tue, 27 Dec 2005 12:48:27 +0000 Subject: [PATCH] backport --- 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