Commit 93ec5539 authored by Ankit Agarwal's avatar Ankit Agarwal
Browse files

MDL-35223 book: use chapter names in page titles

parent 935c3d5e
......@@ -114,7 +114,8 @@ $strbook = get_string('modulename', 'mod_book');
$strtoc = get_string('toc', 'mod_book');
// prepare header
$PAGE->set_title($book->name);
$pagetitle = $book->name . ": " . $chapter->title;
$PAGE->set_title($pagetitle);
$PAGE->set_heading($course->fullname);
book_add_fake_block($chapters, $chapter, $book, $cm, $edit);
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment