Permalink
Browse files

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

…rnal linking to other chapters
  • Loading branch information...
1 parent 56ed66a commit fb97f9a5cf51db044f34270abc503a3ce9e1f371 John Beedell committed with damyon Oct 24, 2013
Showing with 1 addition and 1 deletion.
  1. +1 −1 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);
}
}
}

0 comments on commit fb97f9a

Please sign in to comment.