aboutsummaryrefslogtreecommitdiffstats
path: root/comments.php
diff options
context:
space:
mode:
authorvdigital <vdigital@piwigo.org>2006-12-10 11:33:54 +0000
committervdigital <vdigital@piwigo.org>2006-12-10 11:33:54 +0000
commit906d9bd7951a77356b9caa04073a7d1c02d44bef (patch)
tree06b70cdb87a01fa58808ee139b2413665f7c1a7a /comments.php
parent51b13edc9d726661b51d73de1f92d0a0ff0bc11f (diff)
Undo 597: Unvalidated comments
git-svn-id: http://piwigo.org/svn/trunk@1647 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to 'comments.php')
-rw-r--r--comments.php9
1 files changed, 0 insertions, 9 deletions
diff --git a/comments.php b/comments.php
index 9469cdf6a..4d9ca26db 100644
--- a/comments.php
+++ b/comments.php
@@ -299,13 +299,6 @@ else
$start = 0;
}
-// Comments_validation is required and is not admin => Only validated
-$comment_fltr = '';
-if ( $conf['comments_validation'] and !is_admin() )
-{
- $comment_fltr = 'AND com.validated = \'true\'';
-}
-
$query = '
SELECT COUNT(DISTINCT(id))
FROM '.IMAGE_CATEGORY_TABLE.' AS ic
@@ -315,7 +308,6 @@ SELECT COUNT(DISTINCT(id))
AND '.$page['cat_clause'].'
AND '.$page['author_clause'].'
AND '.$page['keyword_clause'].'
- '.$comment_fltr.'
AND '.$page['status_clause'];
if ($user['forbidden_categories'] != '')
{
@@ -362,7 +354,6 @@ SELECT com.id AS comment_id
AND '.$page['cat_clause'].'
AND '.$page['author_clause'].'
AND '.$page['keyword_clause'].'
- '.$comment_fltr.'
AND '.$page['status_clause'];
if ($user['forbidden_categories'] != '')
{