X-Git-Url: http://www.aleph1.co.uk/gitweb/?a=blobdiff_plain;f=web%2Fcore%2Fmodules%2Flocale%2Fsrc%2FForm%2FImportForm.php;fp=web%2Fcore%2Fmodules%2Flocale%2Fsrc%2FForm%2FImportForm.php;h=40a77204b47d373a52819a816429b8d55ee64840;hb=9917807b03b64faf00f6a1f29dcb6eafc454efa5;hp=f2bd45b84438fd7ee39b6f1bae7c3e6f6ac765c8;hpb=aea91e65e895364e460983b890e295aa5d5540a5;p=yaffs-website diff --git a/web/core/modules/locale/src/Form/ImportForm.php b/web/core/modules/locale/src/Form/ImportForm.php index f2bd45b84..40a77204b 100644 --- a/web/core/modules/locale/src/Form/ImportForm.php +++ b/web/core/modules/locale/src/Form/ImportForm.php @@ -166,7 +166,7 @@ class ImportForm extends FormBase { * {@inheritdoc} */ public function submitForm(array &$form, FormStateInterface $form_state) { - \Drupal::moduleHandler()->loadInclude('locale', 'translation.inc'); + $this->moduleHandler->loadInclude('locale', 'translation.inc'); // Add language, if not yet supported. $language = $this->languageManager->getLanguage($form_state->getValue('langcode')); if (empty($language)) { @@ -185,7 +185,6 @@ class ImportForm extends FormBase { batch_set($batch); // Create or update all configuration translations for this language. - \Drupal::moduleHandler()->loadInclude('locale', 'bulk.inc'); if ($batch = locale_config_batch_update_components($options, [$form_state->getValue('langcode')])) { batch_set($batch); }