Set csrf into the global theme for convenience.

This commit is contained in:
Bharat Mediratta
2009-03-26 06:56:29 +00:00
parent 15eb1a9c8d
commit 9f784818da

View File

@@ -42,8 +42,9 @@ class Admin_View_Core extends View {
$this->theme_name = Input::instance()->get("theme", $this->theme_name);
}
$this->sidebar = "";
$this->set_global('theme', $this);
$this->set_global('user', user::active());
$this->set_global("theme", $this);
$this->set_global("user", user::active());
$this->set_global("csrf", access::csrf_token());
}
public function url($path, $absolute_url=false) {