release 0.4.1
This commit is contained in:
parent
fc0011224a
commit
dca22c0074
3 changed files with 8 additions and 5 deletions
|
@ -1,3 +1,6 @@
|
||||||
|
0.4.1 - 2023.06.17
|
||||||
|
- fix php7.4 compatibility
|
||||||
|
|
||||||
0.4 - 2023.04.24
|
0.4 - 2023.04.24
|
||||||
- fix nullsafe warnings
|
- fix nullsafe warnings
|
||||||
- fix type hint
|
- fix type hint
|
||||||
|
|
|
@ -18,7 +18,7 @@ $this->registerModule(
|
||||||
'Mail to log',
|
'Mail to log',
|
||||||
'Do not send mails but log them',
|
'Do not send mails but log them',
|
||||||
'Jean-Christian Denis and contributors',
|
'Jean-Christian Denis and contributors',
|
||||||
'0.4',
|
'0.4.1',
|
||||||
[
|
[
|
||||||
'requires' => [['core', '2.24']],
|
'requires' => [['core', '2.24']],
|
||||||
'permissions' => dcCore::app()->auth->makePermissions([
|
'permissions' => dcCore::app()->auth->makePermissions([
|
||||||
|
@ -32,9 +32,9 @@ $this->registerModule(
|
||||||
);
|
);
|
||||||
|
|
||||||
if (!function_exists('\_mail')) {
|
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 = dcCore::app()->con->openCursor(dcCore::app()->prefix . dcLog::LOG_TABLE_NAME);
|
||||||
$cur->setField('log_table', basename(__DIR__));
|
$cur->setField('log_table', basename(__DIR__));
|
||||||
|
|
|
@ -2,10 +2,10 @@
|
||||||
<modules xmlns:da="http://dotaddict.org/da/">
|
<modules xmlns:da="http://dotaddict.org/da/">
|
||||||
<module id="mail2log">
|
<module id="mail2log">
|
||||||
<name>Mail to log</name>
|
<name>Mail to log</name>
|
||||||
<version>0.4</version>
|
<version>0.4.1</version>
|
||||||
<author>Jean-Christian Denis and contributors</author>
|
<author>Jean-Christian Denis and contributors</author>
|
||||||
<desc>Do not send mails but log them</desc>
|
<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:dcmin>2.24</da:dcmin>
|
||||||
<da:details>https://plugins.dotaddict.org/dc2/details/mail2log</da:details>
|
<da:details>https://plugins.dotaddict.org/dc2/details/mail2log</da:details>
|
||||||
<da:support>https://github.com/JcDenis/mail2log</da:support>
|
<da:support>https://github.com/JcDenis/mail2log</da:support>
|
||||||
|
|
Loading…
Reference in a new issue