]> git.mjollnir.org Git - moodle.git/commitdiff
NOBUG: Fixed moodle_url issue in module removing confirmation
authormudrd8mz <mudrd8mz>
Thu, 1 Oct 2009 14:23:48 +0000 (14:23 +0000)
committermudrd8mz <mudrd8mz>
Thu, 1 Oct 2009 14:23:48 +0000 (14:23 +0000)
Plain 'mod.php' does not seem to be supported at the moment as a valid $url for the Confirm button

course/mod.php

index 7f8b1068f4fca6995b6fcfec07a7d3cd48ce2904..63fedd55802400046c6b84b008a9873820416e75 100644 (file)
@@ -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
+?>