diff options
Diffstat (limited to 'app/controllers/search/module.php')
| -rw-r--r-- | app/controllers/search/module.php | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/app/controllers/search/module.php b/app/controllers/search/module.php index e772d1e..b624f72 100644 --- a/app/controllers/search/module.php +++ b/app/controllers/search/module.php @@ -19,10 +19,15 @@ class Search_ModuleController extends MVVController { private $drill_down_filter = []; - public function before_filter(&$action, &$args) + public function __construct(Trails\Dispatcher $dispatcher) { - $this->allow_nobody = Config::get()->COURSE_SEARCH_IS_VISIBLE_NOBODY; + $this->allow_nobody = Config::get()->getValue('COURSE_SEARCH_IS_VISIBLE_NOBODY'); + + parent::__construct($dispatcher); + } + public function before_filter(&$action, &$args) + { parent::before_filter($action, $args); $this->drill_down_type = Request::option('type'); |
