From 2f9eae867c8dcd995608da63f08f8f4a8c01efbf Mon Sep 17 00:00:00 2001 From: Bharat Mediratta Date: Sun, 11 Jan 2009 00:19:00 +0000 Subject: Let admins override the theme with a query param --- core/libraries/Theme_View.php | 3 +++ 1 file changed, 3 insertions(+) (limited to 'core/libraries/Theme_View.php') diff --git a/core/libraries/Theme_View.php b/core/libraries/Theme_View.php index ea39cdfc..64023aa6 100644 --- a/core/libraries/Theme_View.php +++ b/core/libraries/Theme_View.php @@ -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); -- cgit v1.2.3