Changeset 13800


Ignore:
Timestamp:
03/29/12 20:48:41 (8 years ago)
Author:
rvelices
Message:

fix email on comment requiring validation even if the options is unchecked

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/functions_comment.inc.php

    r12922 r13800  
    4848 
    4949  if ( $link_count>$conf['comment_spam_max_links'] ) 
     50  { 
     51    $_POST['cr'][] = 'links'; 
    5052    return $my_action; 
    51  
     53  } 
    5254  return $action; 
    5355} 
     
    123125  { 
    124126    $comment_action='reject'; 
     127    $_POST['cr'][] = 'key'; // rvelices: I use this outside to see how spam robots work 
    125128  } 
    126129 
     
    166169    $comm['id'] = pwg_db_insert_id(COMMENTS_TABLE); 
    167170 
    168     if ($conf['email_admin_on_comment'] 
     171    if ( ($conf['email_admin_on_comment'] && 'validate' == $comment_action) 
    169172        or ($conf['email_admin_on_comment_validation'] and 'moderate' == $comment_action)) 
    170173    { 
Note: See TracChangeset for help on using the changeset viewer.