Merge branch 'MDL-78152-400' of https://github.com/paulholden/moodle into MOODLE_400_STABLE

This commit is contained in:
Ilya Tregubov
2023-05-17 15:08:04 +08:00
+2
View File
@@ -96,6 +96,8 @@ $pagetitle = $book->name;
if ($chapter = $DB->get_record('book_chapters', ['id' => $chapterid, 'bookid' => $book->id])) {
$pagetitle .= ": {$chapter->title}";
}
$PAGE->set_other_editing_capability('mod/book:edit');
$PAGE->set_title($pagetitle);
$PAGE->set_heading($course->fullname);
$PAGE->add_body_class('limitedwidth');