X-Git-Url: http://www.aleph1.co.uk/gitweb/?a=blobdiff_plain;ds=sidebyside;f=web%2Fcore%2Fmodules%2Fsystem%2Fsrc%2FController%2FDbUpdateController.php;fp=web%2Fcore%2Fmodules%2Fsystem%2Fsrc%2FController%2FDbUpdateController.php;h=25a2a708918601f5720c6150924a28235c4276ac;hb=0bf8d09d2542548982e81a441b1f16e75873a04f;hp=9e0a374a4a86664e74c2ddeb3e5ef86d482487ff;hpb=74df008bdbb3a11eeea356744f39b802369bda3c;p=yaffs-website
diff --git a/web/core/modules/system/src/Controller/DbUpdateController.php b/web/core/modules/system/src/Controller/DbUpdateController.php
index 9e0a374a4..25a2a7089 100644
--- a/web/core/modules/system/src/Controller/DbUpdateController.php
+++ b/web/core/modules/system/src/Controller/DbUpdateController.php
@@ -335,11 +335,11 @@ class DbUpdateController extends ControllerBase {
// Warn the user if any updates were incompatible.
if ($incompatible_updates_exist) {
- drupal_set_message($this->t('Some of the pending updates cannot be applied because their dependencies were not met.'), 'warning');
+ $this->messenger()->addWarning($this->t('Some of the pending updates cannot be applied because their dependencies were not met.'));
}
if (empty($count)) {
- drupal_set_message($this->t('No pending updates.'));
+ $this->messenger()->addStatus($this->t('No pending updates.'));
unset($build);
$build['links'] = [
'#theme' => 'links',
@@ -524,7 +524,7 @@ class DbUpdateController extends ControllerBase {
$build['status_report'] = [
'#type' => 'status_report',
'#requirements' => $requirements,
- '#suffix' => $this->t('Check the messages and try again.', [':url' => $try_again_url])
+ '#suffix' => $this->t('Check the messages and try again.', [':url' => $try_again_url]),
];
$build['#title'] = $this->t('Requirements problem');