Skip to content

Commit

Permalink
MDL-48389 forms: added page title to help text
Browse files Browse the repository at this point in the history
  • Loading branch information
marsh0lion committed Dec 9, 2014
1 parent 2d84748 commit 9eb24f0
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions help.php
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,11 @@
$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');
Expand Down

0 comments on commit 9eb24f0

Please sign in to comment.