Respect multiple languages in manage template page title (#467)
This commit is contained in:
parent
4ca9f05fc1
commit
5ba1b2b40f
1 changed files with 2 additions and 1 deletions
|
@ -47,7 +47,6 @@ require_login();
|
||||||
require_capability('mod/customcert:manage', $context);
|
require_capability('mod/customcert:manage', $context);
|
||||||
|
|
||||||
$title = $SITE->fullname;
|
$title = $SITE->fullname;
|
||||||
$heading = $title;
|
|
||||||
|
|
||||||
// Set up the page.
|
// Set up the page.
|
||||||
$pageurl = new moodle_url('/mod/customcert/manage_templates.php');
|
$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'));
|
$PAGE->navbar->add(get_string('managetemplates', 'customcert'));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
$heading = format_string($title, true, ['context' => $context]);
|
||||||
|
|
||||||
if ($tid) {
|
if ($tid) {
|
||||||
if ($action && confirm_sesskey()) {
|
if ($action && confirm_sesskey()) {
|
||||||
$nourl = new moodle_url('/mod/customcert/manage_templates.php');
|
$nourl = new moodle_url('/mod/customcert/manage_templates.php');
|
||||||
|
|
Loading…
Reference in a new issue