From 9f784818da36b7779cb9dec6622cdb32d943dbce Mon Sep 17 00:00:00 2001 From: Bharat Mediratta Date: Thu, 26 Mar 2009 06:56:29 +0000 Subject: Set csrf into the global theme for convenience. --- core/libraries/Admin_View.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'core/libraries/Admin_View.php') diff --git a/core/libraries/Admin_View.php b/core/libraries/Admin_View.php index 5876b66c..7d95dd0f 100644 --- a/core/libraries/Admin_View.php +++ b/core/libraries/Admin_View.php @@ -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) { -- cgit v1.2.3