Merge branch 'MDL-38794' of https://github.com/prateeksachan/moodle
authorSam Hemelryk <sam@moodle.com>
Sun, 8 Sep 2013 23:12:56 +0000 (11:12 +1200)
committerSam Hemelryk <sam@moodle.com>
Sun, 8 Sep 2013 23:12:56 +0000 (11:12 +1200)
mod/book/view.php

index cf9ed55..9a604d2 100644 (file)
@@ -191,7 +191,7 @@ if (!$book->customtitles) {
     }
 }
 $chaptertext = file_rewrite_pluginfile_urls($chapter->content, 'pluginfile.php', $context->id, 'mod_book', 'chapter', $chapter->id);
-echo format_text($chaptertext, $chapter->contentformat, array('noclean'=>true, 'context'=>$context));
+echo format_text($chaptertext, $chapter->contentformat, array('noclean'=>true, 'overflowdiv'=>true, 'context'=>$context));
 
 echo $OUTPUT->box_end();