Skip to content
Browse files

MDL-35519 mod_book: fixed the cancel import redirect URL

  • Loading branch information...
1 parent 9273bd1 commit 113f51d7c9e52ed8e8921660724cda60342e4c85 @andyjdavis andyjdavis committed Oct 1, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 mod/book/tool/importhtml/index.php
View
4 mod/book/tool/importhtml/index.php
@@ -60,9 +60,9 @@
// If data submitted, then process and store.
if ($mform->is_cancelled()) {
if (empty($chapter->id)) {
- redirect("/mod/book/view.php?id=$cm->id");
+ redirect($CFG->wwwroot."/mod/book/view.php?id=$cm->id");
} else {
- redirect("/mod/book/view.php?id=$cm->id&chapterid=$chapter->id");
+ redirect($CFG->wwwroot."/mod/book/view.php?id=$cm->id&chapterid=$chapter->id");
}
} else if ($data = $mform->get_data()) {

0 comments on commit 113f51d

Please sign in to comment.
Something went wrong with that request. Please try again.