Changeset 1647


Ignore:
Timestamp:
Dec 10, 2006, 12:33:54 PM (17 years ago)
Author:
vdigital
Message:

Undo 597: Unvalidated comments

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/comments.php

    r1646 r1647  
    300300}
    301301
    302 // Comments_validation is required and is not admin => Only validated
    303 $comment_fltr = '';
    304 if ( $conf['comments_validation'] and !is_admin() )
    305 {
    306   $comment_fltr = 'AND com.validated = \'true\'';
    307 }
    308 
    309302$query = '
    310303SELECT COUNT(DISTINCT(id))
     
    316309    AND '.$page['author_clause'].'
    317310    AND '.$page['keyword_clause'].'
    318     '.$comment_fltr.'
    319311    AND '.$page['status_clause'];
    320312if ($user['forbidden_categories'] != '')
     
    363355    AND '.$page['author_clause'].'
    364356    AND '.$page['keyword_clause'].'
    365     '.$comment_fltr.'
    366357    AND '.$page['status_clause'];
    367358if ($user['forbidden_categories'] != '')
Note: See TracChangeset for help on using the changeset viewer.