From 3a56e70e888ce9420c72add656726dc623a45894 Mon Sep 17 00:00:00 2001 From: Kevin Chabowski Date: Sun, 29 Jan 2012 13:28:28 +0100 Subject: You can now use %root% in CSS styles too. --- ratatoeskr/frontend.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'ratatoeskr/frontend.php') diff --git a/ratatoeskr/frontend.php b/ratatoeskr/frontend.php index 4b01fa0..0425099 100644 --- a/ratatoeskr/frontend.php +++ b/ratatoeskr/frontend.php @@ -601,7 +601,7 @@ $ste->register_tag("styles_load", function($ste, $params, $sub) try { $style = Style::by_name($stylename); - $output .= "/* Style: $stylename */\n" . $style->code . "\n"; + $output .= "/* Style: $stylename */\n" . str_replace("%root%", $rel_path_to_root, $style->code) . "\n"; } catch(DoesNotExistError $e) { -- cgit v1.2.3-70-g09d2