Fixed reference to a string present in the mod_certificate activity
This commit is contained in:
parent
14e051702d
commit
5bed5517e6
2 changed files with 2 additions and 1 deletions
|
@ -107,6 +107,7 @@ $string['receiveddate'] = 'Received date';
|
|||
$string['refpoint'] = 'Reference point location';
|
||||
$string['refpoint_help'] = 'The reference point is the location of an element from which its x and y coordinates are determined. It is indicated by the \'+\' that appears in the centre or corners of the element.';
|
||||
$string['replacetemplate'] = 'Replace';
|
||||
$string['requiredtimenotmet'] = 'You must spend at least a minimum of {$a->requiredtime} minutes in the course before you can access this certificate.';
|
||||
$string['rightmargin'] = 'Right margin';
|
||||
$string['rightmargin_help'] = 'This is the right margin of the certificate PDF in mm.';
|
||||
$string['save'] = 'Save';
|
||||
|
|
2
view.php
2
view.php
|
@ -46,7 +46,7 @@ if ($customcert->requiredtime && !has_capability('mod/customcert:manage', $conte
|
|||
if (\mod_customcert\certificate::get_course_time($course->id) < ($customcert->requiredtime * 60)) {
|
||||
$a = new stdClass;
|
||||
$a->requiredtime = $customcert->requiredtime;
|
||||
notice(get_string('requiredtimenotmet', 'certificate', $a), "$CFG->wwwroot/course/view.php?id=$course->id");
|
||||
notice(get_string('requiredtimenotmet', 'customcert', $a), "$CFG->wwwroot/course/view.php?id=$course->id");
|
||||
die;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue