#203 Make report heading/title consistent with core activities

This commit is contained in:
Mark Nelson 2018-06-25 14:49:26 +08:00
parent 873528cd84
commit 99213e81fd
2 changed files with 3 additions and 4 deletions

View file

@ -33,7 +33,6 @@ $string['coursetimereq'] = 'Required minutes in course';
$string['coursetimereq_help'] = 'Enter here the minimum amount of time, in minutes, that a student must be logged into the course before they will be able to receive
the certificate.';
$string['createtemplate'] = 'Create template';
$string['customcertreport'] = 'Custom certificate report';
$string['customcert:addinstance'] = 'Add a new custom certificate instance';
$string['customcert:manage'] = 'Manage a custom certificate';
$string['customcert:view'] = 'View a custom certificate';

View file

@ -104,13 +104,13 @@ if ($table->is_downloading()) {
}
// Set up the page.
\mod_customcert\page_helper::page_setup($pageurl, $context, get_string('customcertreport', 'customcert'));
\mod_customcert\page_helper::page_setup($pageurl, $context, $customcert->name);
// Additional page setup.
$PAGE->navbar->add(get_string('customcertreport', 'customcert'));
$PAGE->navbar->add(get_string('listofissues', 'customcert'));
echo $OUTPUT->header();
echo $OUTPUT->heading(get_string('listofissues', 'customcert'));
echo $OUTPUT->heading(format_string($customcert->name), 2);
groups_print_activity_menu($cm, $url);