From 4f4a99943945809a788cad030d92c0516bbe45da Mon Sep 17 00:00:00 2001 From: Mark Nelson Date: Tue, 16 Apr 2019 20:25:27 +0800 Subject: [PATCH] Readded number of certificates issued (#266) --- lang/en/customcert.php | 2 +- view.php | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/lang/en/customcert.php b/lang/en/customcert.php index 917e159..c565358 100644 --- a/lang/en/customcert.php +++ b/lang/en/customcert.php @@ -108,7 +108,7 @@ $string['invalidwidth'] = 'The width has to be a valid number greater than 0.'; $string['landscape'] = 'Landscape'; $string['leftmargin'] = 'Left margin'; $string['leftmargin_help'] = 'This is the left margin of the certificate PDF in mm.'; -$string['listofissues'] = 'Recipients'; +$string['listofissues'] = 'Recipients: {$a}'; $string['load'] = 'Load'; $string['loadtemplate'] = 'Load template'; $string['loadtemplatemsg'] = 'Are you sure you wish to load this template? This will remove any existing pages and elements for this certificate.'; diff --git a/view.php b/view.php index 0f94c9f..05de96e 100644 --- a/view.php +++ b/view.php @@ -147,7 +147,8 @@ if (!$downloadown && !$downloadissue) { echo $issuehtml; echo $downloadbutton; if (isset($reporttable)) { - echo $OUTPUT->heading(get_string('listofissues', 'customcert'), 3); + $numissues = \mod_customcert\certificate::get_number_of_issues($customcert->id, $cm, $groupmode); + echo $OUTPUT->heading(get_string('listofissues', 'customcert', $numissues), 3); groups_print_activity_menu($cm, $pageurl); echo $reporttable->out($perpage, false); }