Permalink
Browse files

Moveit action: Removed debug messages; added redirect.

  • Loading branch information...
1 parent 4897d92 commit 9be2bd0c39e27c74b7170d9ed442f23ae4c4fd17 rkingdon committed Feb 16, 2004
Showing with 1 addition and 3 deletions.
  1. +1 −3 mod/lesson/lesson.php
View
@@ -555,9 +555,6 @@
error("Moveit: unable to update link");
}
- echo "<p>\$newfirstpageid: $newfirstpageid";
- echo "<p>\$after: $after";
-
// third step. remove the page to be moved
if (!$prevpageid = get_field("lesson_pages", "prevpageid", "id", $pageid)) {
error("Moveit: prevpageid not found");
@@ -600,6 +597,7 @@
if (!set_field("lesson_pages", "nextpageid", 0, "id", $newlastpageid)) {
error("Moveit: unable to update link");
}
+ redirect("view.php?id=$cm->id", get_string("ok"));
}

0 comments on commit 9be2bd0

Please sign in to comment.