mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-04-21 03:12:55 +09:00
관리자의 게시글의 댓글도 관리자 메일로 알림되도록 수정
This commit is contained in:
parent
a721429f8b
commit
21bcd888c9
2 changed files with 17 additions and 28 deletions
|
|
@ -652,7 +652,6 @@ class commentController extends comment
|
|||
|
||||
$oDocumentModel = getModel('document');
|
||||
$oDocument = $oDocumentModel->getDocument($obj->document_srl);
|
||||
$author_email_address = $oDocument->get('email_address');
|
||||
|
||||
$oMemberModel = getModel("member");
|
||||
$is_logged = Context::get('is_logged');
|
||||
|
|
@ -726,10 +725,7 @@ class commentController extends comment
|
|||
}
|
||||
foreach (array_map('trim', explode(',', $module_info->admin_mail)) as $email_address)
|
||||
{
|
||||
if ($email_address && $email_address !== $author_email_address)
|
||||
{
|
||||
$oMail->addTo($email_address);
|
||||
}
|
||||
$oMail->addTo($email_address);
|
||||
}
|
||||
$oMail->send();
|
||||
// send email to all admins - STOP
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue