aboutsummaryrefslogtreecommitdiff
path: root/h-source/Application/Controllers/HomeController.php
diff options
context:
space:
mode:
Diffstat (limited to 'h-source/Application/Controllers/HomeController.php')
-rw-r--r--h-source/Application/Controllers/HomeController.php10
1 files changed, 2 insertions, 8 deletions
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);