From e2ea86b5f46ac1a50a36ad7be9d3117d7a4c252b Mon Sep 17 00:00:00 2001 From: Benjamin Walker Date: Fri, 29 Nov 2024 16:41:32 +1000 Subject: [PATCH] Change reset bounces continue button to link --- reset_bounces.php | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/reset_bounces.php b/reset_bounces.php index 9d2625a..6542f32 100644 --- a/reset_bounces.php +++ b/reset_bounces.php @@ -53,8 +53,7 @@ echo $OUTPUT->box_start('generalbox', 'notice'); echo $OUTPUT->notification(get_string('bouncesreset', 'tool_emailutils'), 'notifysuccess'); - $continue = new single_button(new moodle_url($return), get_string('continue')); - echo $OUTPUT->render($continue); + echo html_writer::link($return, get_string('continue'), ['class' => 'btn btn-primary']); echo $OUTPUT->box_end(); } else { list($in, $params) = $DB->get_in_or_equal($users); @@ -62,8 +61,7 @@ if (empty($userlist)) { echo $OUTPUT->notification(get_string('invaliduserid', 'error')); - $continue = new single_button(new moodle_url($return), get_string('continue')); - echo $OUTPUT->render($continue); + echo html_writer::link($return, get_string('continue'), ['class' => 'btn btn-primary']); } else { if (\tool_emailutils\helper::use_bounce_ratio()) { echo $OUTPUT->notification(get_string('resetbounceratio', 'tool_emailutils'), 'warning');