mirror of
https://github.com/Pathduck/gallery3.git
synced 2026-05-20 03:19:13 -04:00
Let admins override the theme with a query param
This commit is contained in:
@@ -33,6 +33,9 @@ class Theme_View_Core extends View {
|
||||
parent::__construct($name);
|
||||
|
||||
$this->theme_name = module::get_var("core", "active_theme");
|
||||
if (user::active()->admin) {
|
||||
$this->theme_name = Input::instance()->get("theme", $this->theme_name);
|
||||
}
|
||||
$this->set_global('theme', $this);
|
||||
$this->set_global('user', user::active());
|
||||
$this->set_global("page_type", $page_type);
|
||||
|
||||
Reference in New Issue
Block a user