From 9be2bd0c39e27c74b7170d9ed442f23ae4c4fd17 Mon Sep 17 00:00:00 2001 From: rkingdon Date: Mon, 16 Feb 2004 16:08:40 +0000 Subject: [PATCH] Moveit action: Removed debug messages; added redirect. --- mod/lesson/lesson.php | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/mod/lesson/lesson.php b/mod/lesson/lesson.php index ae91e8b32c0..54618e65a73 100644 --- a/mod/lesson/lesson.php +++ b/mod/lesson/lesson.php @@ -555,9 +555,6 @@ error("Moveit: unable to update link"); } - echo "

\$newfirstpageid: $newfirstpageid"; - echo "

\$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")); }