From 921f3a2eeeca9be23cb006a31b6d6f71e186374a Mon Sep 17 00:00:00 2001 From: Bharat Mediratta Date: Fri, 27 Mar 2009 03:43:21 +0000 Subject: Put csrf token into Admin_View and Theme_View by default, then use it directly wherever possible instead of access::csrf_token(). --- core/libraries/Theme_View.php | 1 + 1 file changed, 1 insertion(+) (limited to 'core/libraries/Theme_View.php') diff --git a/core/libraries/Theme_View.php b/core/libraries/Theme_View.php index cce315ff..bcd1604f 100644 --- a/core/libraries/Theme_View.php +++ b/core/libraries/Theme_View.php @@ -47,6 +47,7 @@ class Theme_View_Core extends View { $this->set_global("theme", $this); $this->set_global("user", user::active()); $this->set_global("page_type", $page_type); + $this->set_global("csrf", access::csrf_token()); $maintenance_mode = Kohana::config("core.maintenance_mode", false, false); if ($maintenance_mode) { -- cgit v1.2.3