Commit 7ed77852 authored by Dries's avatar Dries
Browse files

- Patch #925490 by David_Rothstein: list_themes() should not call...

- Patch #925490 by David_Rothstein: list_themes() should not call file_exists() on each theme's info file.
parent 87596466
......@@ -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.
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment