diff options
author | Luke Shumaker <LukeShu@sbcglobal.net> | 2011-09-05 01:22:27 -0400 |
---|---|---|
committer | Luke Shumaker <LukeShu@sbcglobal.net> | 2011-09-05 01:22:27 -0400 |
commit | 570901ba4e526be37afd0cbbe018cb0500a7cda1 (patch) | |
tree | 81f13e66cfd795141cac216fd2af610e877a1a31 /src/controllers/Plugins.class.php | |
parent | ad4a7ff9159c2c64cea98d7189f46fa7d6174fc2 (diff) |
Refactor a bit
* move a lot of stuff out of MessageManager
* move models from lib to models
Diffstat (limited to 'src/controllers/Plugins.class.php')
-rw-r--r-- | src/controllers/Plugins.class.php | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/controllers/Plugins.class.php b/src/controllers/Plugins.class.php index 597cd19..40d3fc0 100644 --- a/src/controllers/Plugins.class.php +++ b/src/controllers/Plugins.class.php @@ -1,12 +1,12 @@ <?php +require_once('Login.class.php'); Router::register('plugins', 'Plugins'); class Plugins extends Controller { public function index($routed, $remainder) { - global $mm; - $uid = $mm->isLoggedIn(); - if ($uid===false || !$m->getAuthObj($uid)->isAdim()) { + $uid = Login::isLoggedIn(); + if ($uid===false || !Auth::getObj($uid)->isAdmin()) { $this->http401($routed, $remainder); return; } |