From 7ed77852bdaa9519d30132a854a47de5ad212c80 Mon Sep 17 00:00:00 2001 From: Dries Buytaert Date: Sat, 2 Oct 2010 02:50:02 +0000 Subject: - Patch #925490 by David_Rothstein: list_themes() should not call file_exists() on each theme's info file. --- includes/theme.inc | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'includes') 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. -- cgit v1.2.3