mirror of
https://github.com/moodle/moodle.git
synced 2025-08-05 08:56:36 +02:00
MDL-48389 forms: added page title to help text
This commit is contained in:
parent
dbe2143aba
commit
e80a960d35
1 changed files with 5 additions and 0 deletions
5
help.php
5
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');
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue