summaryrefslogtreecommitdiff
path: root/core
diff options
context:
space:
mode:
authorBharat Mediratta <bharat@menalto.com>2009-03-26 06:56:29 +0000
committerBharat Mediratta <bharat@menalto.com>2009-03-26 06:56:29 +0000
commit9f784818da36b7779cb9dec6622cdb32d943dbce (patch)
tree455a46466de16a91c8066a74b27ff7be6017ebae /core
parent15eb1a9c8d7ff2cd02e7a65e061bd1c9333ffdf9 (diff)
Set csrf into the global theme for convenience.
Diffstat (limited to 'core')
-rw-r--r--core/libraries/Admin_View.php5
1 files changed, 3 insertions, 2 deletions
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) {