diff options
| author | Tim Almdal <tnalmdal@shaw.ca> | 2009-11-21 18:57:44 -0800 |
|---|---|---|
| committer | Tim Almdal <tnalmdal@shaw.ca> | 2009-11-21 18:57:44 -0800 |
| commit | f8a4c6edaa405494139aaf8eb6579a9488e73034 (patch) | |
| tree | 098263faec67d468c70cf74f70a3f7136e55a2a2 /modules/gallery/controllers | |
| parent | 23a60fb1f217475419c55adc7ce7427fcdadb2c3 (diff) | |
| parent | 38233c67a2946d6fe7b6457217541c796247285d (diff) | |
Merge branch 'master' into talmdal_dev
Diffstat (limited to 'modules/gallery/controllers')
| -rw-r--r-- | modules/gallery/controllers/admin_themes.php | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/modules/gallery/controllers/admin_themes.php b/modules/gallery/controllers/admin_themes.php index 23685c90..6991acd2 100644 --- a/modules/gallery/controllers/admin_themes.php +++ b/modules/gallery/controllers/admin_themes.php @@ -30,11 +30,13 @@ class Admin_Themes_Controller extends Admin_Controller { private function _get_themes() { $themes = array(); foreach (scandir(THEMEPATH) as $theme_name) { - if ($theme_name[0] == ".") { - continue; - } + if (file_exists(THEMEPATH . "$theme_name/theme.info")) { + if ($theme_name[0] == ".") { + continue; + } - $themes[$theme_name] = theme::get_info($theme_name); + $themes[$theme_name] = theme::get_info($theme_name); + } } return $themes; } |
