use abstract plugin id

This commit is contained in:
Jean-Christian Paul Denis 2022-12-22 23:06:46 +01:00
parent c3debba5ff
commit 11323d42b1
Signed by: JcDenis
GPG Key ID: 1B5B8C5B90B6C951
3 changed files with 10 additions and 6 deletions

View File

@ -1,3 +1,7 @@
0.2 - 2022.12.22
- use abstract plugin id
- fix permissions
0.1 - 2022.11.27
- First version
- Required Dotclear 2.24

View File

@ -15,7 +15,7 @@ if (!defined('DC_RC_PATH')) {
}
$this->registerModule(
'mail2log',
basename(__DIR__),
'Do not send mails but log them',
'Jean-Christian Denis and contributors',
'0.1',
@ -25,8 +25,8 @@ $this->registerModule(
dcAuth::PERMISSION_USAGE,
]),
'type' => 'plugin',
'support' => 'https://github.com/JcDenis/mail2log',
'details' => 'https://plugins.dotaddict.org/dc2/details/mail2log',
'repository' => 'https://raw.githubusercontent.com/JcDenis/mail2log/master/dcstore.xml',
'support' => 'https://github.com/JcDenis/' . basename(__DIR__),
'details' => 'https://plugins.dotaddict.org/dc2/details/' . basename(__DIR__),
'repository' => 'https://raw.githubusercontent.com/JcDenis/' . basename(__DIR__) . '/master/dcstore.xml',
]
);

View File

@ -20,7 +20,7 @@ if (!function_exists('_mail')) {
$headers = is_array($headers) ? implode("\n\t", $headers) : (string) $headers;
$cur = dcCore::app()->con->openCursor(dcCore::app()->prefix . dcLog::LOG_TABLE_NAME);
$cur->log_table = 'mail2log';
$cur->log_table = basename(__DIR__);
$cur->log_msg = sprintf("%s\n-----\n To: %s\n Subject: %s\n-----\n Message:\n%s\n", $headers, $to, $subject, $message);
dcCore::app()->log->addLog($cur);