summaryrefslogtreecommitdiff
path: root/src/controllers/Messages.class.php
diff options
context:
space:
mode:
authorLuke Shumaker <LukeShu@sbcglobal.net>2011-09-05 01:22:27 -0400
committerLuke Shumaker <LukeShu@sbcglobal.net>2011-09-05 01:22:27 -0400
commit570901ba4e526be37afd0cbbe018cb0500a7cda1 (patch)
tree81f13e66cfd795141cac216fd2af610e877a1a31 /src/controllers/Messages.class.php
parentad4a7ff9159c2c64cea98d7189f46fa7d6174fc2 (diff)
Refactor a bit
* move a lot of stuff out of MessageManager * move models from lib to models
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