From cf2a4a79eb8344ab1c3303d4bdbb80c91d94925b Mon Sep 17 00:00:00 2001 From: Kevin Chabowski Date: Tue, 27 Dec 2011 01:36:09 +0100 Subject: Section's Styles are nowonlyavailable by a getter. Also fixed many MySQL Queries. These SELECT ... WHERE foo = (SELECT...) have not worked as expected, so now there are many ugly joins... --- 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 f022958..92197f5 100644 --- a/ratatoeskr/frontend.php +++ b/ratatoeskr/frontend.php @@ -783,7 +783,7 @@ function frontend_url_handler(&$data, $url_now, &$url_next) if(!isset($section)) $section = $default_section; - foreach($section->styles as $style) + foreach($section->get_styles() as $style) $ste->vars["current"]["styles"][] = $style->name; echo $ste->exectemplate("/usertemplates/" . $section->template); } -- cgit v1.2.3-54-g00ecf