]> git.mjollnir.org Git - moodle.git/commitdiff
MDL-14679 cleaned up mod.php
authorskodak <skodak>
Sun, 1 Jun 2008 20:15:50 +0000 (20:15 +0000)
committerskodak <skodak>
Sun, 1 Jun 2008 20:15:50 +0000 (20:15 +0000)
course/mod.php
course/mod_delete.html [deleted file]
course/modedit.php

index 5e981e8aea1d356ccd47cbb54b972c053d28ef8d..3e13e9fc947963e8d2e92f533e87484a43c72e23 100644 (file)
@@ -20,7 +20,6 @@
     $delete        = optional_param('delete', 0, PARAM_INT);
     $course        = optional_param('course', 0, PARAM_INT);
     $groupmode     = optional_param('groupmode', -1, PARAM_INT);
-    $duplicate     = optional_param('duplicate', 0, PARAM_INT);
     $cancel        = optional_param('cancel', 0, PARAM_BOOL);
     $cancelcopy    = optional_param('cancelcopy', 0, PARAM_BOOL);
     $confirm       = optional_param('confirm', 0, PARAM_BOOL);
diff --git a/course/mod_delete.html b/course/mod_delete.html
deleted file mode 100644 (file)
index e6c21eb..0000000
+++ /dev/null
@@ -1,14 +0,0 @@
-<form id="form" method="post" action="<?php echo "$CFG->wwwroot/course/mod.php" ?>">
-
-<input type="hidden" name="mode"         value="delete" />
-<input type="hidden" name="section"      value="<?php p($form->section) ?>" />
-<input type="hidden" name="course"       value="<?php p($form->course) ?>" />
-<input type="hidden" name="sesskey"      value="<?php p($form->sesskey) ?>" />
-<input type="hidden" name="coursemodule" value="<?php p($form->coursemodule) ?>" />
-<input type="hidden" name="modulename"   value="<?php p($form->modulename) ?>" />
-<input type="hidden" name="instance"     value="<?php p($form->instance) ?>" />
-
-<input type="submit" value=" <?php print_string("yes")?> " /> 
-<input type="button" value=" <?php print_string("no")?> " onclick="javascript:history.go(-1);" />
-
-</form>
index 6054a7bc52a8704b0e4903e985ce41c93fc73af9..d87b573ea49f791c5993a6f18c2d67148e61741a 100644 (file)
         if ($return && !empty($cm->id)){
             redirect("$CFG->wwwroot/mod/$module->name/view.php?id=$cm->id");
         } else {
-            redirect("view.php?id=$course->id#section-".$cw->section);
+            redirect("$CFG->wwwroot/course/view.php?id=$course->id#section-".$cw->section);
         }
     } else if ($fromform = $mform->get_data()) {
         if (empty($fromform->coursemodule)) { //add