summaryrefslogtreecommitdiff
path: root/includes/theme.inc
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2010-10-02 02:50:02 +0000
committerDries Buytaert <dries@buytaert.net>2010-10-02 02:50:02 +0000
commit7ed77852bdaa9519d30132a854a47de5ad212c80 (patch)
treefc3e47aca80f4f05978504e6aa4bddfcf345e14a /includes/theme.inc
parent8759646676a527f5a51440075e0a12c9d5c3fd49 (diff)
downloadbrdo-7ed77852bdaa9519d30132a854a47de5ad212c80.tar.gz
brdo-7ed77852bdaa9519d30132a854a47de5ad212c80.tar.bz2
- Patch #925490 by David_Rothstein: list_themes() should not call file_exists() on each theme's info file.
Diffstat (limited to 'includes/theme.inc')
-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.