From 9eb24f081800acc8376b5f653cbd82317bb57eba Mon Sep 17 00:00:00 2001 From: Brian Barnes Date: Thu, 27 Nov 2014 13:36:48 +1300 Subject: [PATCH] MDL-48389 forms: added page title to help text --- help.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/help.php b/help.php index 5b5a65fcf1e..f59b2b64c4f 100644 --- a/help.php +++ b/help.php @@ -42,6 +42,11 @@ $PAGE->set_pagelayout('popup'); $PAGE->set_context(context_system::instance()); $data = get_formatted_help_string($identifier, $component, false); +if (!empty($data->heading)) { + $PAGE->set_title($data->heading); +} else { + $PAGE->set_title(get_string('help')); +} echo $OUTPUT->header(); if (!empty($data->heading)) { echo $OUTPUT->heading($data->heading, 1, 'helpheading');