Let admins override the theme with a query param

This commit is contained in:
Bharat Mediratta
2009-01-11 00:19:00 +00:00
parent 120ad3a2cd
commit 2f9eae867c
2 changed files with 6 additions and 0 deletions

View File

@@ -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);