Merge branch 'MDL-33480' of git://github.com/stronk7/moodle
authorDan Poltawski <dan@moodle.com>
Mon, 4 Jun 2012 08:59:49 +0000 (16:59 +0800)
committerDan Poltawski <dan@moodle.com>
Mon, 4 Jun 2012 08:59:49 +0000 (16:59 +0800)
mod/book/tool/print/index.php

index 5205435..334bd31 100644 (file)
@@ -114,6 +114,7 @@ if ($chapter) {
 } else {
     add_to_log($course->id, 'book', 'print', 'tool/print/index.php?id='.$cm->id, $book->id, $cm->id);
     $allchapters = $DB->get_records('book_chapters', array('bookid'=>$book->id), 'pagenum');
+    $book->intro = file_rewrite_pluginfile_urls($book->intro, 'pluginfile.php', $context->id, 'mod_book', 'intro', null);
 
     // page header
     ?>