Browse files

MDL-41473 book: Book html zip import, incorrect url produced for inte…

…rnal linking to other chapters
  • Loading branch information...
1 parent e89c21b commit 614bf85a9e2b8c1cf62e36e713c883faaadeb5b2 John Beedell committed with damyon Oct 24, 2013
Showing with 1 addition and 1 deletion.
  1. +1 −1 mod/book/tool/importhtml/locallib.php
View
2 mod/book/tool/importhtml/locallib.php
@@ -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);
}
}
}

0 comments on commit 614bf85

Please sign in to comment.