diff --git a/core/modules/system/src/Controller/DbUpdateController.php b/core/modules/system/src/Controller/DbUpdateController.php index 0239a41..ea0cb8e 100644 --- a/core/modules/system/src/Controller/DbUpdateController.php +++ b/core/modules/system/src/Controller/DbUpdateController.php @@ -372,7 +372,8 @@ protected function selection(Request $request) { } // @todo Simplify with https://www.drupal.org/node/2548095 $base_url = str_replace('/update.php', '', $request->getBaseUrl()); - $url = (new Url('system.db_update', array('op' => 'run')))->setOption('base_url', $base_url); + $language = \Drupal::languageManager()->getLanguage(\Drupal\Core\Language\LanguageInterface::LANGCODE_NOT_APPLICABLE); + $url = (new Url('system.db_update', array('op' => 'run')))->setOption('base_url', $base_url)->setOption('language', $language); $build['link'] = array( '#type' => 'link', '#title' => $this->t('Apply pending updates'), diff --git a/core/modules/system/system.install b/core/modules/system/system.install index c9e8175..5b35b5a 100644 --- a/core/modules/system/system.install +++ b/core/modules/system/system.install @@ -638,7 +638,7 @@ function system_requirements($phase) { if ($has_pending_updates) { $requirements['update']['severity'] = REQUIREMENT_ERROR; $requirements['update']['value'] = t('Out of date'); - $requirements['update']['description'] = t('Some modules have database schema updates to install. You should run the database update script immediately.', array(':update' => \Drupal::url('system.db_update'))); + $requirements['update']['description'] = t('Some modules have database schema updates to install. You should run the database update script immediately.', array(':update' => \Drupal::url('system.db_update', array(), array('language' => \Drupal::languageManager()->getLanguage(\Drupal\Core\Language\LanguageInterface::LANGCODE_NOT_APPLICABLE))))); } $requirements['entity_update'] = [