diff --git a/core/modules/locale/locale.compare.inc b/core/modules/locale/locale.compare.inc index 0c53ec3..7f15654 100644 --- a/core/modules/locale/locale.compare.inc +++ b/core/modules/locale/locale.compare.inc @@ -138,7 +138,7 @@ function locale_translation_project_list() { $projects = &drupal_static(__FUNCTION__, array()); if (empty($projects)) { - module_load_include('compare.inc', 'update'); + $update_compare = \Drupal::service('update.compare'); $config = config('locale.settings'); $projects = array(); @@ -148,11 +148,11 @@ function locale_translation_project_list() { ); $module_data = _locale_translation_prepare_project_list(system_rebuild_module_data(), 'module'); $theme_data = _locale_translation_prepare_project_list(system_rebuild_theme_data(), 'theme'); - update_process_info_list($projects, $module_data, 'module', TRUE, $additional_whitelist); - update_process_info_list($projects, $theme_data, 'theme', TRUE, $additional_whitelist); + $update_compare->processInfoList($projects, $module_data, 'module', TRUE, $additional_whitelist); + $update_compare->processInfoList($projects, $theme_data, 'theme', TRUE, $additional_whitelist); if ($config->get('translation.check_disabled_modules')) { - update_process_info_list($projects, $module_data, 'module', FALSE, $additional_whitelist); - update_process_info_list($projects, $theme_data, 'theme', FALSE, $additional_whitelist); + $update_compare->processInfoList($projects, $module_data, 'module', FALSE, $additional_whitelist); + $update_compare->processInfoList($projects, $theme_data, 'theme', FALSE, $additional_whitelist); } // Allow other modules to alter projects before fetching and comparing. diff --git a/core/modules/update/update.module b/core/modules/update/update.module index eb06285..87d41b7 100644 --- a/core/modules/update/update.module +++ b/core/modules/update/update.module @@ -784,10 +784,6 @@ function update_delete_file_if_stale($path) { } } -function update_fetch_data_batch(&$context) { - \Drupal\update\Controller\UpdateFetchController::fetchDataBatch($context); -} - /** * Batch callback: Performs actions when all fetch tasks have been completed. *