aboutsummaryrefslogtreecommitdiff
path: root/app/controllers/shared/download.php
diff options
context:
space:
mode:
Diffstat (limited to 'app/controllers/shared/download.php')
-rw-r--r--app/controllers/shared/download.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/app/controllers/shared/download.php b/app/controllers/shared/download.php
index 6e39998..1bb3920 100644
--- a/app/controllers/shared/download.php
+++ b/app/controllers/shared/download.php
@@ -1,11 +1,11 @@
<?php
class Shared_DownloadController extends AuthenticatedController
{
- 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::before_filter($action, $args);
+ parent::__construct($dispatcher);
}
/**