mirror of
https://github.com/Pathduck/gallery3.git
synced 2026-05-20 03:19:13 -04:00
Set csrf into the global theme for convenience.
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user