From 34570f86bc9a0ee7451fee1a70ecf1f4616748e1 Mon Sep 17 00:00:00 2001 From: "Eloy Lafuente (stronk7)" Date: Mon, 4 Jun 2012 01:46:53 +0200 Subject: [PATCH] MDL-33480 book print tool: display intro images properly --- mod/book/tool/print/index.php | 1 + 1 file changed, 1 insertion(+) diff --git a/mod/book/tool/print/index.php b/mod/book/tool/print/index.php index 5205435375e8c..334bd319a721f 100644 --- a/mod/book/tool/print/index.php +++ b/mod/book/tool/print/index.php @@ -114,6 +114,7 @@ } 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 ?>