use abstract plugin id
This commit is contained in:
parent
c3debba5ff
commit
11323d42b1
@ -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
|
10
_define.php
10
_define.php
@ -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',
|
||||
@ -24,9 +24,9 @@ $this->registerModule(
|
||||
'permissions' => dcCore::app()->auth->makePermissions([
|
||||
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',
|
||||
'type' => 'plugin',
|
||||
'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',
|
||||
]
|
||||
);
|
||||
|
@ -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);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user