Skip to content
Snippets Groups Projects
Commit 7ed77852 authored by Dries Buytaert's avatar Dries Buytaert
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
No related branches found
No related tags found
2 merge requests!7452Issue #1797438. HTML5 validation is preventing form submit and not fully...,!789Issue #3210310: Adjust Database API to remove deprecated Drupal 9 code in Drupal 10
......@@ -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.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment