From 1ff1f7e1eade342ab1bb83b8a0eeba46a4beb5fb Mon Sep 17 00:00:00 2001 From: Paul Holden Date: Tue, 29 Jul 2025 22:03:18 +0100 Subject: [PATCH] MDL-86157 mod_glossary: correctly format entry page title. --- public/mod/glossary/showentry.php | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/public/mod/glossary/showentry.php b/public/mod/glossary/showentry.php index b298f26e8ab..63e973e7aa3 100644 --- a/public/mod/glossary/showentry.php +++ b/public/mod/glossary/showentry.php @@ -73,7 +73,12 @@ if (!empty($courseid)) { $PAGE->navbar->add($strglossaries); $PAGE->navbar->add($strsearch); - $PAGE->set_title(strip_tags("$course->shortname: $strglossaries $strsearch")); + + $PAGE->set_title(implode(\moodle_page::TITLE_SEPARATOR, [ + $strsearch, + $strglossaries, + $course->shortname, + ])); $PAGE->set_heading($course->fullname); echo $OUTPUT->header(); } else {