diff --git a/core/includes/install.core.inc b/core/includes/install.core.inc index 35598e9..890ba14 100644 --- a/core/includes/install.core.inc +++ b/core/includes/install.core.inc @@ -1589,7 +1589,7 @@ function install_download_additional_translations_operations(&$install_state) { * An array of information about the current installation state. * * @return - * The batch definition, if there are language files to import. + * An array containing the batch definition, if there are language files to import. */ function install_import_translations(&$install_state) { \Drupal::moduleHandler()->loadInclude('locale', 'translation.inc'); @@ -1619,7 +1619,7 @@ function install_import_translations(&$install_state) { 'finished' => 'locale_translation_batch_fetch_finished', 'file' => drupal_get_path('module', 'locale') . '/locale.batch.inc', ); - return $batch; + return array($batch); } } @@ -1681,7 +1681,7 @@ function _install_prepare_import($langcodes, $server_pattern) { * * @see install_tasks() */ -function install_import_translations_remaining(&$install_state) { +function install_finish_translations(&$install_state) { \Drupal::moduleHandler()->loadInclude('locale', 'fetch.inc'); \Drupal::moduleHandler()->loadInclude('locale', 'compare.inc');