From 14773cb85ac457dcb143b6cb4dea117aa471214b 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 9c79337..2c9e1a3 100644 --- a/lang/en/attendance.php +++ b/lang/en/attendance.php @@ -575,3 +575,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;