diff --git a/core/includes/theme.maintenance.inc b/core/includes/theme.maintenance.inc index e40498c..a94040d 100644 --- a/core/includes/theme.maintenance.inc +++ b/core/includes/theme.maintenance.inc @@ -64,7 +64,8 @@ function _drupal_maintenance_theme() { } // Ensure that system.module is loaded. - if (!function_exists('system_rebuild_theme_data')) { + $theme_handler = \Drupal::service('theme_handler'); + if (!method_exists($theme_handler, 'rebuildThemeData()')) { $module_handler = \Drupal::moduleHandler(); $module_handler->addModule('system', 'core/modules/system'); $module_handler->load('system');