From 0e30b858ad37e404dcd2aa16f67dbca44be33761 Mon Sep 17 00:00:00 2001 From: Dan Marsden Date: Tue, 27 Jun 2017 19:50:02 +1200 Subject: [PATCH] Fix typo in var translation. --- lang/en/attendance.php | 2 +- locallib.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lang/en/attendance.php b/lang/en/attendance.php index a80554a..8ecaeb4 100644 --- a/lang/en/attendance.php +++ b/lang/en/attendance.php @@ -158,7 +158,7 @@ $string['emailcontent_help'] = 'When a warning is sent to a student, it takes th
  • %numtakensessions%
  • %points%
  • %maxpoints%
  • -
  • %precent%
  • +
  • %percent%
  • '; $string['emailsubject'] = 'Email subject'; diff --git a/locallib.php b/locallib.php index b540213..0814bba 100644 --- a/locallib.php +++ b/locallib.php @@ -804,7 +804,7 @@ function attendance_template_variables($record) { '/%numtakensessions%/' => $record->numtakensessions, '/%points%/' => $record->points, '/%maxpoints%/' => $record->maxpoints, - '/%precent%/' => $record->percent, + '/%percent%/' => $record->percent, ); $extrauserfields = get_all_user_name_fields(); foreach ($extrauserfields as $extra) {