summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTim Almdal <tnalmdal@shaw.ca>2010-06-25 10:23:11 -0700
committerTim Almdal <tnalmdal@shaw.ca>2010-06-25 10:23:11 -0700
commit8ecf28d3efa258d790d6cb31947407deb7149797 (patch)
tree4c8058762c138744faea21848dfa62b6a2096054
parente380f19ee29ee1f524aee2d4ebbf4c49f120fb19 (diff)
Better fix for the problem that a preview of an admin theme was not showing up.
-rw-r--r--modules/gallery/helpers/theme.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/gallery/helpers/theme.php b/modules/gallery/helpers/theme.php
index 4730d296..419d986f 100644
--- a/modules/gallery/helpers/theme.php
+++ b/modules/gallery/helpers/theme.php
@@ -57,11 +57,11 @@ class theme_Core {
if (identity::active_user()->admin && $override = $input->get("theme")) {
if (file_exists(THEMEPATH . $override)) {
self::$admin_theme_name = $override;
+ array_unshift($modules, THEMEPATH . self::$admin_theme_name);
} else {
Kohana_Log::add("error", "Missing override theme: '$override'");
}
}
- array_unshift($modules, THEMEPATH . self::$admin_theme_name);
} else {
// Admins can override the site theme, temporarily. This lets us preview themes.
if (identity::active_user()->admin && $override = $input->get("theme")) {