summaryrefslogtreecommitdiff
path: root/src/controllers/Messages.class.php
diff options
context:
space:
mode:
Diffstat (limited to 'src/controllers/Messages.class.php')
-rw-r--r--src/controllers/Messages.class.php9
1 files changed, 4 insertions, 5 deletions
diff --git a/src/controllers/Messages.class.php b/src/controllers/Messages.class.php
index 86403ae..d28d968 100644
--- a/src/controllers/Messages.class.php
+++ b/src/controllers/Messages.class.php
@@ -1,4 +1,5 @@
<?php
+require_once('Login.class.php');
Router::register('messages', 'Messages', 'index');
Router::register('messages/index', 'Messages', 'index');
@@ -39,9 +40,8 @@ class Messages extends Controller {
}
public function message($routed, $remainder) {
- global $mm;
- $uid = $mm->isLoggedIn();
- if ($uid===false || !$mm->getAuthObj($uid)->isUser()) {
+ $uid = Login::isLoggedIn();
+ if ($uid===false || !Auth::getObj($uid)->isUser()) {
$this->http401($routed, $remainder);
return;
}
@@ -94,7 +94,6 @@ class Messages extends Controller {
}
public function http401($routed, $remainder) {
- global $mm;
- $this->showView('messages/401', array('uid'=>$mm->isLoggedIn()));
+ $this->showView('messages/401', array('uid'=>Login::isLoggedIn()));
}
} \ No newline at end of file