summaryrefslogtreecommitdiff
path: root/modules/gallery/libraries/Theme_View.php
diff options
context:
space:
mode:
authorjhilden <jakobhilden@gmail.com>2009-09-26 11:27:45 -0400
committerjhilden <jakobhilden@gmail.com>2009-09-26 11:27:45 -0400
commit21341d552f7e56341b29c020e1149d9c41182c84 (patch)
tree70502de8e6784d749b47b445838d8719f21af6bf /modules/gallery/libraries/Theme_View.php
parent4345e96d1db63c8488eb7a35cdc8e42987ba53f5 (diff)
parent0abd6f63bc8a1976a62bc4b57bbabe10d62b5c8d (diff)
Merge branch 'master' of git@github.com:gallery/gallery3
Diffstat (limited to 'modules/gallery/libraries/Theme_View.php')
-rw-r--r--modules/gallery/libraries/Theme_View.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/gallery/libraries/Theme_View.php b/modules/gallery/libraries/Theme_View.php
index 130e2dce..ebd6a920 100644
--- a/modules/gallery/libraries/Theme_View.php
+++ b/modules/gallery/libraries/Theme_View.php
@@ -29,8 +29,8 @@ class Theme_View_Core extends Gallery_View {
*/
public function __construct($name, $page_type) {
$theme_name = module::get_var("gallery", "active_site_theme");
- if (!file_exists("themes/$theme_name")) {
- module::set_var("gallery", "active_site_theme", "default");
+ if (!file_exists(THEMEPATH . $theme_name)) {
+ module::set_var("gallery", "active_site_theme", "wind");
theme::load_themes();
Kohana::log("error", "Unable to locate theme '$theme_name', switching to default theme.");
}