Commit 614bf85a authored by John Beedell's avatar John Beedell Committed by Damyon Wiese
Browse files

MDL-41473 book: Book html zip import, incorrect url produced for internal linking to other chapters

parent e89c21b2
......@@ -144,7 +144,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);
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment