diff options
author | Kevin Chabowski <kevin@kch42.de> | 2012-01-09 22:42:17 +0100 |
---|---|---|
committer | Kevin Chabowski <kevin@kch42.de> | 2012-01-09 22:42:17 +0100 |
commit | 2ca197660ddd97b504a505bdab5f80bd1a5c14de (patch) | |
tree | bf12c8ac860b9adc80977762c8f816bc52c27617 /ratatoeskr | |
parent | 8582fb2a50c268d84e0726457cad83320eb52c7c (diff) | |
download | ratatoeskr-cms-2ca197660ddd97b504a505bdab5f80bd1a5c14de.tar.gz ratatoeskr-cms-2ca197660ddd97b504a505bdab5f80bd1a5c14de.tar.bz2 ratatoeskr-cms-2ca197660ddd97b504a505bdab5f80bd1a5c14de.zip |
Fixed linking mode of ste:styles_load
Diffstat (limited to 'ratatoeskr')
-rw-r--r-- | ratatoeskr/frontend.php | 6 |
1 files 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 .= "<link rel=\"stylesheet\" type=\"text/css\" href=\"" . htmlesc($stylename) . "\" />\n"; + $output .= "<link rel=\"stylesheet\" type=\"text/css\" href=\"$rel_path_to_root/css.php?name=" . htmlesc($stylename) . "\" />\n"; } return $output; }); |