From 5ba1b2b40fb0d524ce4044854e3918d1148bf608 Mon Sep 17 00:00:00 2001 From: Mark Nelson Date: Wed, 27 Oct 2021 16:44:49 +0800 Subject: [PATCH] Respect multiple languages in manage template page title (#467) --- manage_templates.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/manage_templates.php b/manage_templates.php index 42d223d..e57a72b 100644 --- a/manage_templates.php +++ b/manage_templates.php @@ -47,7 +47,6 @@ require_login(); require_capability('mod/customcert:manage', $context); $title = $SITE->fullname; -$heading = $title; // Set up the page. $pageurl = new moodle_url('/mod/customcert/manage_templates.php'); @@ -61,6 +60,8 @@ if ($tid && $action && confirm_sesskey()) { $PAGE->navbar->add(get_string('managetemplates', 'customcert')); } +$heading = format_string($title, true, ['context' => $context]); + if ($tid) { if ($action && confirm_sesskey()) { $nourl = new moodle_url('/mod/customcert/manage_templates.php');