Security update for Core, with self-updated composer
[yaffs-website] / web / core / modules / locale / src / Form / ImportForm.php
index f2bd45b84438fd7ee39b6f1bae7c3e6f6ac765c8..40a77204b47d373a52819a816429b8d55ee64840 100644 (file)
@@ -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);
     }