diff --git a/core/includes/theme.maintenance.inc b/core/includes/theme.maintenance.inc index 9bf0bea..d63ce1b 100644 --- a/core/includes/theme.maintenance.inc +++ b/core/includes/theme.maintenance.inc @@ -62,10 +62,6 @@ function _drupal_maintenance_theme() { } } - $module_handler = \Drupal::moduleHandler(); - $module_handler->addModule('system', 'core/modules/system'); - $module_handler->load('system'); - $themes = \Drupal::service('theme_handler')->listInfo(); // If no themes are installed yet, or if the requested custom theme is not