From 10bc2a32759112ad7d97eeb8bd783e7451ef28fd Mon Sep 17 00:00:00 2001 From: Antonio Gallo Date: Sun, 16 Sep 2012 21:28:33 +0000 Subject: improved the way the top menu is created - help wiki page added inside the top menu --- h-source/Application/Controllers/HelpController.php | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) (limited to 'h-source/Application/Controllers/HelpController.php') diff --git a/h-source/Application/Controllers/HelpController.php b/h-source/Application/Controllers/HelpController.php index cd202ae..78a31b9 100644 --- a/h-source/Application/Controllers/HelpController.php +++ b/h-source/Application/Controllers/HelpController.php @@ -20,23 +20,22 @@ if (!defined('EG')) die('Direct access not allowed!'); -class HelpController extends BaseController +class HelpController extends WikiController { public function __construct($model, $controller, $queryString) { - $this->_topMenuClasses['help'] = " class='currentitem'"; parent::__construct($model, $controller, $queryString); + $this->_topMenuClasses['wiki'] = null; + + $data['tm'] = $this->_topMenuClasses; + $data['title'] = 'help index - '.Website::$generalName; + $this->append($data); } - - public function index($lang = 'en') - { - $this->cleverLoad('index'); - } } \ No newline at end of file -- cgit v1.2.3