aboutsummaryrefslogtreecommitdiff
path: root/h-source/Application/Controllers/BaseController.php
diff options
context:
space:
mode:
Diffstat (limited to 'h-source/Application/Controllers/BaseController.php')
-rw-r--r--h-source/Application/Controllers/BaseController.php5
1 files changed, 3 insertions, 2 deletions
diff --git a/h-source/Application/Controllers/BaseController.php b/h-source/Application/Controllers/BaseController.php
index 76fc4d3..db85405 100644
--- a/h-source/Application/Controllers/BaseController.php
+++ b/h-source/Application/Controllers/BaseController.php
@@ -24,8 +24,9 @@ class BaseController extends Controller
{
protected $lang;
- protected $ismoderator;
+ protected $ismoderator = false;
protected $querySanitized = true;
+ protected $token = 'token';
protected $_topMenuClasses = array(
"home" => null,
@@ -56,13 +57,13 @@ class BaseController extends Controller
$data['islogged'] = 'no';
$data['token'] = 'token';
$data['ismoderator'] = false;
- $this->ismoderator = false;
if ($this->s['registered']->status['status'] === 'logged')
{
$data['username'] = $this->s['registered']->status['user'];
$data['islogged'] = 'yes';
$data['token'] = $this->s['registered']->status['token'];
+ $this->token = $data['token'];
$data['ismoderator'] = in_array('moderator',$this->s['registered']->status['groups']) ? true : false;
$this->ismoderator = $data['ismoderator'];
}