From 9d68fcead2cb23e448b882b5abb8a7c240ab9df3 Mon Sep 17 00:00:00 2001 From: Mark Nelson Date: Mon, 25 Jun 2018 14:49:26 +0800 Subject: [PATCH] #203 Make report heading/title consistent with core activities --- lang/en/customcert.php | 1 - report.php | 6 +++--- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/lang/en/customcert.php b/lang/en/customcert.php index fb10848..0e6665a 100644 --- a/lang/en/customcert.php +++ b/lang/en/customcert.php @@ -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'; diff --git a/report.php b/report.php index a00e74a..41bf6cf 100644 --- a/report.php +++ b/report.php @@ -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);