Skip to content

Commit

Permalink
Fixed deprecated strings in Moodle 4.4.
Browse files Browse the repository at this point in the history
  • Loading branch information
michael-milette committed Jul 22, 2024
1 parent 1135ac5 commit 08b7f3b
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 4 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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.
Expand Down
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
12 changes: 10 additions & 2 deletions index.php
Original file line number Diff line number Diff line change
Expand Up @@ -192,14 +192,22 @@
$messagehtml = get_string('message', 'local_' . $pluginname, $a);
$messagetext = html_to_text($messagehtml);

if ($CFG->branch >= 404) {
$fromsender = get_string('fromsender');
$torecipient = get_string('torecipient');
} else {
$fromsender = get_string('from');
$torecipient = get_string('to');
}

ob_end_flush();
ob_implicit_flush(true);
echo '<h2 class="alert-heading">' . get_string('testing', 'local_' . $pluginname) . '</h2>';
echo '<p>' . get_string('fromsender') . ' : ' . $fromemail->email . '<br>
echo '<p>' . $fromsender . ' : ' . $fromemail->email . '<br>
&#129095; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &#129095; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &#129095;<br>
' . get_string('server', 'local_' . $pluginname, (empty($CFG->smtphosts) ? 'PHPMailer' : $CFG->smtphosts)) . '<br>
&#129095; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &#129095; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &#129095;<br>
' . get_string('torecipient') . ' : ' . $toemail->email . '</p>';
' . $torecipient . ' : ' . $toemail->email . '</p>';
ob_implicit_flush(false);

// Manage Moodle SMTP debugging display.
Expand Down
4 changes: 2 additions & 2 deletions version.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;

0 comments on commit 08b7f3b

Please sign in to comment.