mirror of
https://github.com/Pathduck/gallery3.git
synced 2026-07-26 01:34:09 -04:00
Put csrf token into Admin_View and Theme_View by default, then use it
directly wherever possible instead of access::csrf_token().
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user