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('testing', 'local_' . $pluginname) . '

'; - 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 . '

'; + ' . $tosender . ' : ' . $toemail->email . '

'; ob_implicit_flush(false); // Manage Moodle SMTP debugging display. diff --git a/version.php b/version.php index 3d85fce..ad2c9ce 100644 --- a/version.php +++ b/version.php @@ -26,8 +26,8 @@ defined('MOODLE_INTERNAL') || die(); $plugin->component = 'local_mailtest'; // To check on upgrade, that module sits in correct place. -$plugin->version = 2024062801; // The current module version (Date: YYYYMMDDXX). +$plugin->version = 2024072200; // The current module version (Date: YYYYMMDDXX). $plugin->requires = 2013040500; // Requires Moodle version 2.5. -$plugin->release = '3.1.5'; +$plugin->release = '3.1.6'; $plugin->maturity = MATURITY_STABLE; $plugin->cron = 0;