Remove all non Identity API methods from Identity.php. Created an MY_Session class to provide the user state changes in the session and a login.php helper that has the login form.

This commit is contained in:
Tim Almdal
2009-10-16 10:06:58 -07:00
parent bc241e44c2
commit 78ee4193b7
41 changed files with 194 additions and 176 deletions

View File

@@ -36,12 +36,12 @@ class Admin_View_Core extends Gallery_View {
parent::__construct($name);
$this->theme_name = module::get_var("gallery", "active_admin_theme");
if (Identity::active()->admin) {
if (Session::active_user()->admin) {
$this->theme_name = Input::instance()->get("theme", $this->theme_name);
}
$this->sidebar = "";
$this->set_global("theme", $this);
$this->set_global("user", Identity::active());
$this->set_global("user", Session::active_user());
}
public function admin_menu() {