From cf9e3a718731e07d0c3d13e33e3a375f31566c44 Mon Sep 17 00:00:00 2001 From: Dan Marsden Date: Thu, 7 May 2020 14:44:47 +1200 Subject: [PATCH] Fix #467 use of core deprecated strings. --- lang/en/attendance.php | 1 + messageselect.php | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/lang/en/attendance.php b/lang/en/attendance.php index 5558deb..75c771d 100644 --- a/lang/en/attendance.php +++ b/lang/en/attendance.php @@ -583,3 +583,4 @@ $string['formattexttype'] = 'Formatting'; $string['currentlyselectedusers'] = 'Currently selected users'; $string['usemessageform'] = 'or use the form below to send a message to the selected students'; $string['backtoparticipants'] = 'Back to participants list'; +$string['previewhtml'] = 'HTML format preview'; \ No newline at end of file diff --git a/messageselect.php b/messageselect.php index 12c3d00..99d712a 100644 --- a/messageselect.php +++ b/messageselect.php @@ -131,7 +131,7 @@ if (!empty($messagebody) && !$edit && !$deluser && ($preview || $send)) { '; - echo "

".get_string('previewhtml')."

"; + echo "

".get_string('previewhtml', 'mod_attendance')."

"; echo "
\n".format_text($messagebody, $format)."\n
\n"; echo '

'."\n"; echo '

'; @@ -156,7 +156,7 @@ if (!empty($messagebody) && !$edit && !$deluser && ($preview || $send)) { } echo ''; } - echo '

'.get_string('backtoparticipants').'

'; + echo '

'.get_string('backtoparticipants', 'mod_attendance').'

'; } echo $OUTPUT->footer(); exit;