Changeset 1647
- Timestamp:
- Dec 10, 2006, 12:33:54 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/comments.php
r1646 r1647 300 300 } 301 301 302 // Comments_validation is required and is not admin => Only validated303 $comment_fltr = '';304 if ( $conf['comments_validation'] and !is_admin() )305 {306 $comment_fltr = 'AND com.validated = \'true\'';307 }308 309 302 $query = ' 310 303 SELECT COUNT(DISTINCT(id)) … … 316 309 AND '.$page['author_clause'].' 317 310 AND '.$page['keyword_clause'].' 318 '.$comment_fltr.'319 311 AND '.$page['status_clause']; 320 312 if ($user['forbidden_categories'] != '') … … 363 355 AND '.$page['author_clause'].' 364 356 AND '.$page['keyword_clause'].' 365 '.$comment_fltr.'366 357 AND '.$page['status_clause']; 367 358 if ($user['forbidden_categories'] != '')
Note: See TracChangeset
for help on using the changeset viewer.