diff -u b/core/includes/module.inc b/core/includes/module.inc --- b/core/includes/module.inc +++ b/core/includes/module.inc @@ -183,7 +183,7 @@ $enabled_themes = config('system.theme')->get(); $enabled_modules = config('system.module')->get(); _system_list_warm('module', 'system', 'core/modules/system.module', TRUE); - system_list_reset(); + $module_file_list = state()->get('system.module_file_list'); $theme_data = state()->get('system.themes'); // As themes do not need to be installed to be used there is an issue during @@ -258,7 +258,7 @@ } cache('bootstrap')->set('system_list', $lists); cache('bootstrap')->set('bootstrap_modules', $lists['bootstrap']); - $in_rebuild = FALSE; + return $lists; }