From daa1dd74d480252a65d3c236818273dc19d29beb Mon Sep 17 00:00:00 2001 From: Andrew Davis Date: Mon, 1 Oct 2012 10:05:22 +0800 Subject: [PATCH] MDL-35519 mod_book: fixed the cancel import redirect URL --- mod/book/tool/importhtml/index.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mod/book/tool/importhtml/index.php b/mod/book/tool/importhtml/index.php index eaae261f830..25ee6f77fa4 100644 --- a/mod/book/tool/importhtml/index.php +++ b/mod/book/tool/importhtml/index.php @@ -60,9 +60,9 @@ $mform = new booktool_importhtml_form(null, array('id'=>$id, 'chapterid'=>$chapt // 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()) {