From: mudrd8mz <mudrd8mz>
Date: Thu, 1 Oct 2009 14:23:48 +0000 (+0000)
Subject: NOBUG: Fixed moodle_url issue in module removing confirmation
X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=5ac27e270b3354fafa7eca0461dcecda3a49008a;p=moodle.git

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
---

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
+?>