From 2ca197660ddd97b504a505bdab5f80bd1a5c14de Mon Sep 17 00:00:00 2001 From: Kevin Chabowski Date: Mon, 9 Jan 2012 22:42:17 +0100 Subject: Fixed linking mode of ste:styles_load --- ratatoeskr/frontend.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/ratatoeskr/frontend.php b/ratatoeskr/frontend.php index fe38d5e..51b940d 100644 --- a/ratatoeskr/frontend.php +++ b/ratatoeskr/frontend.php @@ -249,6 +249,8 @@ $ste->register_tag("section_list", function($ste, $params, $sub) global $ratatoeskr_settings; $lang = $ste->vars["language"]; + $default_section = $ratatoeskr_settings["default_section"]; + if(!isset($params["var"])) throw new Exception("Parameter var is needed in article_get!"); @@ -266,7 +268,7 @@ $ste->register_tag("section_list", function($ste, $params, $sub) if($ste->evalbool($params["include_default"])) { - $default = section_transform_ste(Section::by_id($ratatoeskr_settings["default_section"])); + $default = section_transform_ste(Section::by_id($default_section), $lang); array_unshift($result, $default); } @@ -613,7 +615,7 @@ $ste->register_tag("styles_load", function($ste, $params, $sub) { $output = ""; foreach($ste->vars["current"]["styles"] as $stylename) - $output .= "\n"; + $output .= "\n"; } return $output; }); -- cgit v1.2.3-70-g09d2