Fix namespace

This commit is contained in:
Jean-Christian Paul Denis 2023-10-19 21:25:22 +02:00
parent d15b51809d
commit 2377fdec76
Signed by: JcDenis
GPG Key ID: 1B5B8C5B90B6C951
4 changed files with 13 additions and 7 deletions

View File

@ -1,3 +1,9 @@
mail2log 0.7.1 - 2023.10.19
===========================================================
* Require Dotclear 2.28
* Require PHP 8.1
* Fix namespace
mail2log 0.7 - 2023.10.13 mail2log 0.7 - 2023.10.13
=========================================================== ===========================================================
* Require Dotclear 2.28 * Require Dotclear 2.28

View File

@ -1,7 +1,7 @@
# README # README
[![Release](https://img.shields.io/badge/release-0.7-a2cbe9.svg)](https://git.dotclear.watch/JcDenis/mail2log/releases) [![Release](https://img.shields.io/badge/release-0.7.1-a2cbe9.svg)](https://git.dotclear.watch/JcDenis/mail2log/releases)
![Date](https://img.shields.io/badge/date-2023.10.13-c44d58.svg) ![Date](https://img.shields.io/badge/date-2023.10.19-c44d58.svg)
[![Dotclear](https://img.shields.io/badge/dotclear-v2.28-137bbb.svg)](https://fr.dotclear.org/download) [![Dotclear](https://img.shields.io/badge/dotclear-v2.28-137bbb.svg)](https://fr.dotclear.org/download)
[![Dotaddict](https://img.shields.io/badge/dotaddict-official-9ac123.svg)](https://plugins.dotaddict.org/dc2/details/mail2log) [![Dotaddict](https://img.shields.io/badge/dotaddict-official-9ac123.svg)](https://plugins.dotaddict.org/dc2/details/mail2log)
[![License](https://img.shields.io/badge/license-GPL--2.0-ececec.svg)](https://git.dotclear.watch/JcDenis/mail2log/src/branch/master/LICENSE) [![License](https://img.shields.io/badge/license-GPL--2.0-ececec.svg)](https://git.dotclear.watch/JcDenis/mail2log/src/branch/master/LICENSE)

View File

@ -17,7 +17,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.7', '0.7.1',
[ [
'requires' => [['core', '2.28']], 'requires' => [['core', '2.28']],
'permissions' => 'My', 'permissions' => 'My',
@ -33,10 +33,10 @@ if (!function_exists('\_mail')) {
{ {
$headers = is_array($headers) ? implode("\n\t", $headers) : (is_string($headers) ? $headers : ''); $headers = is_array($headers) ? implode("\n\t", $headers) : (is_string($headers) ? $headers : '');
$cur = App::log()->openLogCursor(); $cur = Dotclear\App::log()->openLogCursor();
$cur->setField('log_table', basename(__DIR__)); $cur->setField('log_table', basename(__DIR__));
$cur->setField('log_msg', sprintf("%s\n-----\n To: %s\n Subject: %s\n-----\n Message:\n%s\n", $headers, $to, $subject, $message)); $cur->setField('log_msg', sprintf("%s\n-----\n To: %s\n Subject: %s\n-----\n Message:\n%s\n", $headers, $to, $subject, $message));
App::log()->addLog($cur); Dotclear\App::log()->addLog($cur);
return true; return true;
} }

View File

@ -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.7</version> <version>0.7.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://git.dotclear.watch/JcDenis/mail2log/releases/download/v0.7/plugin-mail2log.zip</file> <file>https://git.dotclear.watch/JcDenis/mail2log/releases/download/v0.7.1/plugin-mail2log.zip</file>
<da:dcmin>2.28</da:dcmin> <da:dcmin>2.28</da:dcmin>
<da:details>https://git.dotclear.watch/JcDenis/mail2log/src/branch/master/README.md</da:details> <da:details>https://git.dotclear.watch/JcDenis/mail2log/src/branch/master/README.md</da:details>
<da:support>https://git.dotclear.watch/JcDenis/mail2log/issues</da:support> <da:support>https://git.dotclear.watch/JcDenis/mail2log/issues</da:support>