From 2377fdec76dc0ea40148b60a5d8b44ce861d734b Mon Sep 17 00:00:00 2001 From: Jean-Christian Denis Date: Thu, 19 Oct 2023 21:25:22 +0200 Subject: [PATCH] Fix namespace --- CHANGELOG.md | 6 ++++++ README.md | 4 ++-- _define.php | 6 +++--- dcstore.xml | 4 ++-- 4 files changed, 13 insertions(+), 7 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 4aae5b5..213872a 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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 diff --git a/README.md b/README.md index cb9b328..518b97c 100644 --- a/README.md +++ b/README.md @@ -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) diff --git a/_define.php b/_define.php index 6fdec3f..9e1e35e 100644 --- a/_define.php +++ b/_define.php @@ -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; } diff --git a/dcstore.xml b/dcstore.xml index a1c8540..39c1625 100644 --- a/dcstore.xml +++ b/dcstore.xml @@ -2,10 +2,10 @@ Mail to log - 0.7 + 0.7.1 Jean-Christian Denis and contributors Do not send mails but log them - https://git.dotclear.watch/JcDenis/mail2log/releases/download/v0.7/plugin-mail2log.zip + https://git.dotclear.watch/JcDenis/mail2log/releases/download/v0.7.1/plugin-mail2log.zip 2.28 https://git.dotclear.watch/JcDenis/mail2log/src/branch/master/README.md https://git.dotclear.watch/JcDenis/mail2log/issues