Merge branch 'MDL-47371-30-fix' of git://github.com/cameron1729/moodle into MOODLE_30_STABLE

This commit is contained in:
Andrew Nicols
2016-07-13 12:11:51 +08:00
+1
View File
@@ -331,6 +331,7 @@ function book_get_toc($chapters, $chapter, $book, $cm, $edit) {
$toc .= html_writer::start_tag('ul');
foreach ($chapters as $ch) {
$title = trim(format_string($ch->title, true, array('context'=>$context)));
$titleunescaped = trim(format_string($ch->title, true, array('context' => $context, 'escape' => false)));
if (!$ch->hidden) {
if (!$ch->subchapter) {
$nch++;