Fix namespace
This commit is contained in:
parent
d15b51809d
commit
2377fdec76
@ -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
|
||||
===========================================================
|
||||
* Require Dotclear 2.28
|
||||
|
@ -1,7 +1,7 @@
|
||||
# README
|
||||
|
||||
[![Release](https://img.shields.io/badge/release-0.7-a2cbe9.svg)](https://git.dotclear.watch/JcDenis/mail2log/releases)
|
||||
![Date](https://img.shields.io/badge/date-2023.10.13-c44d58.svg)
|
||||
[![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.19-c44d58.svg)
|
||||
[![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)
|
||||
[![License](https://img.shields.io/badge/license-GPL--2.0-ececec.svg)](https://git.dotclear.watch/JcDenis/mail2log/src/branch/master/LICENSE)
|
||||
|
@ -17,7 +17,7 @@ $this->registerModule(
|
||||
'Mail to log',
|
||||
'Do not send mails but log them',
|
||||
'Jean-Christian Denis and contributors',
|
||||
'0.7',
|
||||
'0.7.1',
|
||||
[
|
||||
'requires' => [['core', '2.28']],
|
||||
'permissions' => 'My',
|
||||
@ -33,10 +33,10 @@ if (!function_exists('\_mail')) {
|
||||
{
|
||||
$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_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;
|
||||
}
|
||||
|
@ -2,10 +2,10 @@
|
||||
<modules xmlns:da="http://dotaddict.org/da/">
|
||||
<module id="mail2log">
|
||||
<name>Mail to log</name>
|
||||
<version>0.7</version>
|
||||
<version>0.7.1</version>
|
||||
<author>Jean-Christian Denis and contributors</author>
|
||||
<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: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>
|
||||
|
Loading…
Reference in New Issue
Block a user