Skip to content

Commit

Permalink
Readded number of certificates issued (#266)
Browse files Browse the repository at this point in the history
  • Loading branch information
mdjnelson committed Apr 16, 2019
1 parent b808ff4 commit 4f4a999
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lang/en/customcert.php
Expand Up @@ -108,7 +108,7 @@
$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.';
Expand Down
3 changes: 2 additions & 1 deletion view.php
Expand Up @@ -147,7 +147,8 @@
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);
}
Expand Down

0 comments on commit 4f4a999

Please sign in to comment.