summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--includes/theme.inc6
1 files changed, 1 insertions, 5 deletions
diff --git a/includes/theme.inc b/includes/theme.inc
index 7ce021ef0..9024b7d47 100644
--- a/includes/theme.inc
+++ b/includes/theme.inc
@@ -581,11 +581,7 @@ function list_themes($refresh = FALSE) {
// Also check that the site is not in the middle of an install or update.
if (!defined('MAINTENANCE_MODE')) {
try {
- foreach (system_list('theme') as $theme) {
- if (file_exists($theme->filename)) {
- $themes[] = $theme;
- }
- }
+ $themes = system_list('theme');
}
catch (Exception $e) {
// If the database is not available, rebuild the theme data.