Removed dead code.

This commit is contained in:
defacer
2005-02-12 12:49:46 +00:00
parent dbbd55c492
commit ff0c7de0b0
2 changed files with 2 additions and 151 deletions
+1 -25
View File
@@ -172,31 +172,7 @@
exit;
}
if (isset($_GET['move']) and confirm_sesskey()) {
require_variable($id);
if (! $cm = get_record("course_modules", "id", $id)) {
error("This course module doesn't exist");
}
if (!isteacheredit($cm->course)) {
error("You can't modify this course!");
}
move_module($cm, $_GET['move']);
rebuild_course_cache($cm->course);
if (SITEID == $cm->course) {
redirect($CFG->wwwroot);
} else {
redirect("view.php?id=$cm->course");
}
exit;
} else if ((isset($_GET['movetosection']) or isset($_GET['moveto'])) and confirm_sesskey()) {
if ((isset($_GET['movetosection']) or isset($_GET['moveto'])) and confirm_sesskey()) {
if (! $cm = get_record("course_modules", "id", $USER->activitycopy)) {
error("The copied course module doesn't exist!");