Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Moveit action: Removed debug messages; added redirect.

  • Loading branch information...
commit 9be2bd0c39e27c74b7170d9ed442f23ae4c4fd17 1 parent 4897d92
rkingdon authored
Showing with 1 addition and 3 deletions.
  1. +1 −3 mod/lesson/lesson.php
View
4 mod/lesson/lesson.php
@@ -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"));
}
Please sign in to comment.
Something went wrong with that request. Please try again.