Window title = "name" when printing?

Window title = "name" when printing?

by Michael Woods -
Number of replies: 1
Picture of Core developers
Hi,

When printing, the browser window has a title of "name". I think this should be the actual book name.

In /mod/book/print.php at line 110, I changed from

<title><?PHP echo format_string(name) ?></title>

to

<title><?PHP echo format_string($book->name) ?></title>

This seems to have worked.

Regards,
Michael
Average of ratings: Useful (2)
In reply to Michael Woods

Re: Window title = "name" when printing?

by Steve Bluck -
Thanks for sharing Michael -saved this non-programer a lot of stress big grin