- 🇬🇧United Kingdom catch
+++ b/core/modules/system/src/Controller/DbUpdateController.php @@ -339,6 +339,9 @@ protected function selection(Request $request) { + if (isset($update['warning'])) { + $this->messenger()->addWarning($this->t($update['warning'])); + }
$update['warning'] can't be run through t() because it's a variable, can just skip the $this->t().
I think #4 is is suggesting to just replace isset() with !empty() and that seems worth doing for robustness.
- Status changed to Needs review
almost 2 years ago 4:04am 2 March 2023 The last submitted patch, 24: 2189429-24.patch, failed testing. View results →
- Status changed to Needs work
over 1 year ago 4:00am 5 August 2023 - 🇳🇿New Zealand quietone
Now that the string is not being translated it needs to be escaped correctly.