Permalink
Browse files

Merge branch 'MDL-37048-m24' of git://github.com/ankitagarwal/moodle …

…into MOODLE_24_STABLE
  • Loading branch information...
2 parents 6cf6c38 + 1c5d23e commit b54015e60deab728fcbe19f882fa0bf6a5c456b7 Sam Hemelryk committed Jan 14, 2013
Showing with 1 addition and 1 deletion.
  1. +1 −1 mod/book/tool/importhtml/locallib.php
@@ -54,7 +54,7 @@ function toolbook_importhtml_import_chapters($package, $type, $book, $context, $
}
if ($type == 0) {
$chapterfile = reset($chapterfiles);
- if ($file = $fs->get_file_by_hash("$context->id/mod_book/importhtmltemp/0/$chapterfile->pathname")) {
+ if ($file = $fs->get_file_by_hash(sha1("$context->id/mod_book/importhtmltemp/0/$chapterfile->pathname"))) {
$htmlcontent = toolbook_importhtml_fix_encoding($file->get_content());
$htmlchapters = toolbook_importhtml_parse_headings(toolbook_importhtml_parse_body($htmlcontent));
// TODO: process h1 as main chapter and h2 as subchapters

0 comments on commit b54015e

Please sign in to comment.