MDL-33480 book print tool: display intro images properly
authorEloy Lafuente (stronk7) <stronk7@moodle.org>
Sun, 3 Jun 2012 23:46:53 +0000 (01:46 +0200)
committerEloy Lafuente (stronk7) <stronk7@moodle.org>
Sun, 3 Jun 2012 23:46:53 +0000 (01:46 +0200)
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
     ?>