From 5ac27e270b3354fafa7eca0461dcecda3a49008a Mon Sep 17 00:00:00 2001 From: mudrd8mz Date: Thu, 1 Oct 2009 14:23:48 +0000 Subject: [PATCH] NOBUG: Fixed moodle_url issue in module removing confirmation Plain 'mod.php' does not seem to be supported at the moment as a valid $url for the Confirm button --- course/mod.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/course/mod.php b/course/mod.php index 7f8b1068f4..63fedd5580 100644 --- a/course/mod.php +++ b/course/mod.php @@ -94,7 +94,7 @@ if (!empty($add)) { // print_simple_box_start('center', '60%', '#FFAAAA', 20, 'noticebox'); echo $OUTPUT->box_start('noticebox'); - $formcontinue = html_form::make_button('mod.php', $optionsyes, get_string('yes')); + $formcontinue = html_form::make_button("$CFG->wwwroot/course/mod.php", $optionsyes, get_string('yes')); $formcancel = html_form::make_button($return, $optionsno, get_string('no'), 'get'); echo $OUTPUT->confirm($strdeletecheckfull, $formcontinue, $formcancel); echo $OUTPUT->box_end(); @@ -306,4 +306,4 @@ if ((!empty($movetosection) or !empty($moveto)) and confirm_sesskey()) { print_error('unknowaction'); } -?> \ No newline at end of file +?> -- 2.39.5