summaryrefslogtreecommitdiff
path: root/core/libraries/Theme_View.php
diff options
context:
space:
mode:
Diffstat (limited to 'core/libraries/Theme_View.php')
-rw-r--r--core/libraries/Theme_View.php3
1 files changed, 3 insertions, 0 deletions
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);