From a65549d0b3d834aadc3704c0a1bcb07125632f07 Mon Sep 17 00:00:00 2001 From: Paul Holden Date: Mon, 20 Jun 2022 18:51:03 +0100 Subject: [PATCH] MDL-75031 output: swap order of buttons in confirmation prompts. As per ff6e5cc7, the primary button "Continue" should be displayed on the right hand site of the confirmation prompt. --- lib/outputrenderers.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/outputrenderers.php b/lib/outputrenderers.php index 153c6b49022..a3c536fa80c 100644 --- a/lib/outputrenderers.php +++ b/lib/outputrenderers.php @@ -2088,7 +2088,7 @@ class core_renderer extends renderer_base { $output .= html_writer::tag('p', $message); $output .= $this->box_end(); $output .= $this->box_start('modal-footer', 'modal-footer'); - $output .= html_writer::tag('div', $this->render($continue) . $this->render($cancel), array('class' => 'buttons')); + $output .= html_writer::tag('div', $this->render($cancel) . $this->render($continue), ['class' => 'buttons']); $output .= $this->box_end(); $output .= $this->box_end(); $output .= $this->box_end(); @@ -5569,7 +5569,7 @@ class core_renderer_maintenance extends core_renderer { $output = $this->box_start('generalbox', 'notice'); $output .= html_writer::tag('h4', get_string('confirm')); $output .= html_writer::tag('p', $message); - $output .= html_writer::tag('div', $this->render($continue) . $this->render($cancel), array('class' => 'buttons')); + $output .= html_writer::tag('div', $this->render($cancel) . $this->render($continue), ['class' => 'buttons']); $output .= $this->box_end(); return $output; }