Skip to content

Commit e2ea86b

Browse files
bwalkerlbrendanheywood
authored andcommitted
Change reset bounces continue button to link
1 parent 7a1cad0 commit e2ea86b

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

reset_bounces.php

+2-4
Original file line numberDiff line numberDiff line change
@@ -53,17 +53,15 @@
5353
echo $OUTPUT->box_start('generalbox', 'notice');
5454
echo $OUTPUT->notification(get_string('bouncesreset', 'tool_emailutils'), 'notifysuccess');
5555

56-
$continue = new single_button(new moodle_url($return), get_string('continue'));
57-
echo $OUTPUT->render($continue);
56+
echo html_writer::link($return, get_string('continue'), ['class' => 'btn btn-primary']);
5857
echo $OUTPUT->box_end();
5958
} else {
6059
list($in, $params) = $DB->get_in_or_equal($users);
6160
$userlist = $DB->get_records_select_menu('user', "id $in", $params, 'fullname', 'id,'.$DB->sql_fullname().' AS fullname');
6261

6362
if (empty($userlist)) {
6463
echo $OUTPUT->notification(get_string('invaliduserid', 'error'));
65-
$continue = new single_button(new moodle_url($return), get_string('continue'));
66-
echo $OUTPUT->render($continue);
64+
echo html_writer::link($return, get_string('continue'), ['class' => 'btn btn-primary']);
6765
} else {
6866
if (\tool_emailutils\helper::use_bounce_ratio()) {
6967
echo $OUTPUT->notification(get_string('resetbounceratio', 'tool_emailutils'), 'warning');

0 commit comments

Comments
 (0)