diff --git a/CHANGELOG.md b/CHANGELOG.md index 4775900..0302b88 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,10 @@ # Change Log All notable changes to this project will be documented in this file. +## [3.1.6] - 2024-07-22 +### Updated +- Fixed deprecated strings in Moodle 4.4. + ## [3.1.5] - 2024-06-28 ### Update - Fixed some compatibility issues with PHP 5.6 and 7.0. diff --git a/README.md b/README.md index 8ea9301..4db994b 100644 --- a/README.md +++ b/README.md @@ -208,6 +208,10 @@ If you are interested in helping, please take a look at our [contributing](https Michael Milette - Author and Lead Developer +Big thank you to the following contributors. (Please let me know if I forgot to include you in the list): + +* laurentdavid: Fixed deprecated strings in Moodle 4.4 (2024). + ## Pending Features Let us know if you have any suggestions. diff --git a/index.php b/index.php index c489c81..5ae7a7f 100644 --- a/index.php +++ b/index.php @@ -192,14 +192,22 @@ $messagehtml = get_string('message', 'local_' . $pluginname, $a); $messagetext = html_to_text($messagehtml); + if ($CFG->branch >= 404) { + $fromsender = get_string('fromsender'); + $tosender = get_string('tosender'); + } else { + $fromsender = get_string('from'); + $tosender = get_string('to'); + } + ob_end_flush(); ob_implicit_flush(true); echo '
' . get_string('fromsender') . ' : ' . $fromemail->email . '
+ echo '
' . $fromsender . ' : ' . $fromemail->email . '
🡇 🡇 🡇
' . get_string('server', 'local_' . $pluginname, (empty($CFG->smtphosts) ? 'PHPMailer' : $CFG->smtphosts)) . '
🡇 🡇 🡇
- ' . get_string('torecipient') . ' : ' . $toemail->email . '