From fb97f9a5cf51db044f34270abc503a3ce9e1f371 Mon Sep 17 00:00:00 2001 From: John Beedell Date: Thu, 24 Oct 2013 13:31:52 +0100 Subject: [PATCH] MDL-41473 book: Book html zip import, incorrect url produced for internal linking to other chapters --- mod/book/tool/importhtml/locallib.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mod/book/tool/importhtml/locallib.php b/mod/book/tool/importhtml/locallib.php index 7b64a210d30..3f264878043 100644 --- a/mod/book/tool/importhtml/locallib.php +++ b/mod/book/tool/importhtml/locallib.php @@ -138,7 +138,7 @@ function toolbook_importhtml_import_chapters($package, $type, $book, $context, $ foreach ($allchapters as $target) { if ($target->importsrc === $chapterpath) { $newcontent = str_replace($match, 'href="'.new moodle_url('/mod/book/view.php', - array('id'=>$context->instanceid, 'chapter'=>$target->id)).'"', $newcontent); + array('id'=>$context->instanceid, 'chapterid'=>$target->id)).'"', $newcontent); } } }