From 570901ba4e526be37afd0cbbe018cb0500a7cda1 Mon Sep 17 00:00:00 2001 From: Luke Shumaker Date: Mon, 5 Sep 2011 01:22:27 -0400 Subject: Refactor a bit * move a lot of stuff out of MessageManager * move models from lib to models --- src/views/Template.class.php | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) (limited to 'src/views/Template.class.php') diff --git a/src/views/Template.class.php b/src/views/Template.class.php index 540e4fc..f57d5dc 100644 --- a/src/views/Template.class.php +++ b/src/views/Template.class.php @@ -1,10 +1,12 @@ base = $base_url; - $this->mm = $mm; + $this->db = $mm->database(); } public function setRet($ret) { @@ -109,11 +111,11 @@ class Template { echo $str; } public function header($title) { - $mm = $this->mm; - if ($mm==null) { + $db = $this->db; + if ($db==null) { $username = false; } else { - $username = $mm->getUsername($mm->isLoggedIn()); + $username = $db->getUsername(Login::isLoggedIn()); } $ret = $this->ret; -- cgit v1.2.3-2-g168b