mirror of
https://github.com/Piwigo/Piwigo.git
synced 2025-04-27 19:59:56 +03:00
Send comment notification only if comment is not validated and $conf is true.
git-svn-id: http://piwigo.org/svn/trunk@2166 68402e56-0260-453c-a942-63ccdbb3a9ee
This commit is contained in:
parent
6c66b11889
commit
e480a291cd
1 changed files with 6 additions and 2 deletions
|
@ -189,8 +189,12 @@ INSERT INTO '.COMMENTS_TABLE.'
|
||||||
|
|
||||||
$comm['id'] = mysql_insert_id();
|
$comm['id'] = mysql_insert_id();
|
||||||
|
|
||||||
if ( ($comment_action=='validate' and $conf['email_admin_on_comment'])
|
if
|
||||||
or $conf['email_admin_on_comment_validation'] )
|
(
|
||||||
|
($comment_action=='validate' and $conf['email_admin_on_comment'])
|
||||||
|
or
|
||||||
|
($comment_action!='validate' and $conf['email_admin_on_comment_validation'])
|
||||||
|
)
|
||||||
{
|
{
|
||||||
include_once(PHPWG_ROOT_PATH.'include/functions_mail.inc.php');
|
include_once(PHPWG_ROOT_PATH.'include/functions_mail.inc.php');
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue