diff --git a/core/lib/Drupal/Core/Extension/ThemeHandler.php b/core/lib/Drupal/Core/Extension/ThemeHandler.php index 2d8ee1f..1ef8a54 100644 --- a/core/lib/Drupal/Core/Extension/ThemeHandler.php +++ b/core/lib/Drupal/Core/Extension/ThemeHandler.php @@ -179,18 +179,11 @@ public function disable(array $theme_list) { public function listInfo() { if (empty($this->list)) { $this->list = array(); - // Check that the site is not in the middle of an install or update. - if (!defined('MAINTENANCE_MODE')) { - try { - $themes = $this->systemThemeList(); - } - catch (\Exception $e) { - // If the database is not available, rebuild the theme data. - $themes = $this->rebuildThemeData(); - } + try { + $themes = $this->systemThemeList(); } - else { - // Scan the installation when the database should not be read. + catch (\Exception $e) { + // If the database is not available, rebuild the theme data. $themes = $this->rebuildThemeData(); }