Skip to content

Commit

Permalink
Better fix for the problem that a preview of an admin theme was not s…
Browse files Browse the repository at this point in the history
…howing up.
  • Loading branch information
Tim Almdal committed Jun 25, 2010
1 parent e380f19 commit 8ecf28d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/gallery/helpers/theme.php
Expand Up @@ -57,11 +57,11 @@ static function load_themes() {
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")) {
Expand Down

0 comments on commit 8ecf28d

Please sign in to comment.