release 0.4.1

master
Jean-Christian Paul Denis 2023-06-17 11:13:58 +02:00
parent fc0011224a
commit dca22c0074
Signed by: JcDenis
GPG Key ID: 1B5B8C5B90B6C951
3 changed files with 8 additions and 5 deletions

View File

@ -1,3 +1,6 @@
0.4.1 - 2023.06.17
- fix php7.4 compatibility
0.4 - 2023.04.24
- fix nullsafe warnings
- fix type hint

View File

@ -18,7 +18,7 @@ $this->registerModule(
'Mail to log',
'Do not send mails but log them',
'Jean-Christian Denis and contributors',
'0.4',
'0.4.1',
[
'requires' => [['core', '2.24']],
'permissions' => dcCore::app()->auth->makePermissions([
@ -32,9 +32,9 @@ $this->registerModule(
);
if (!function_exists('\_mail')) {
function _mail(string $to, string $subject, string $message, string|array $headers = '', ?string $params = null): bool
function _mail(string $to, string $subject, string $message, $headers = '', ?string $params = null): bool
{
$headers = is_array($headers) ? implode("\n\t", $headers) : $headers;
$headers = is_array($headers) ? implode("\n\t", $headers) : (is_string($headers) ? $headers : '');
$cur = dcCore::app()->con->openCursor(dcCore::app()->prefix . dcLog::LOG_TABLE_NAME);
$cur->setField('log_table', basename(__DIR__));

View File

@ -2,10 +2,10 @@
<modules xmlns:da="http://dotaddict.org/da/">
<module id="mail2log">
<name>Mail to log</name>
<version>0.4</version>
<version>0.4.1</version>
<author>Jean-Christian Denis and contributors</author>
<desc>Do not send mails but log them</desc>
<file>https://github.com/JcDenis/mail2log/releases/download/v0.4/plugin-mail2log.zip</file>
<file>https://github.com/JcDenis/mail2log/releases/download/v0.4.1/plugin-mail2log.zip</file>
<da:dcmin>2.24</da:dcmin>
<da:details>https://plugins.dotaddict.org/dc2/details/mail2log</da:details>
<da:support>https://github.com/JcDenis/mail2log</da:support>