From 9e0955c96d888fc2e00014498d095a7d65ab48fb Mon Sep 17 00:00:00 2001 From: Antonio Gallo Date: Sun, 9 Oct 2011 21:03:50 +0000 Subject: improved the way modules are taken from an xml configuration string --- h-source/Application/Controllers/HomeController.php | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) (limited to 'h-source/Application/Controllers/HomeController.php') diff --git a/h-source/Application/Controllers/HomeController.php b/h-source/Application/Controllers/HomeController.php index 96479f3..eecb53f 100644 --- a/h-source/Application/Controllers/HomeController.php +++ b/h-source/Application/Controllers/HomeController.php @@ -37,14 +37,8 @@ class HomeController extends BaseController public function index($lang = 'en') { // get the news container - $data['htmlNewsBox'] = null; - $xml = $this->getBox(array('top_news')); - if ($xml) - { - $box_news = new BoxParser($xml); - $data['htmlNewsBox'] = $box_news->render(); - } - + $data['htmlNewsBox'] = $this->getModule(array('top_news')); + $this->append($data); $this->cleverLoad('left'); $this->right($lang); -- cgit v1.2.3