feature:2549 Allow to disable comments for everybody

git-svn-id: http://piwigo.org/svn/trunk@12887 68402e56-0260-453c-a942-63ccdbb3a9ee
This commit is contained in:
mistic100
2012-01-14 22:29:10 +00:00
parent a412558492
commit c501688dbc
23 changed files with 172 additions and 51 deletions
+1 -1
View File
@@ -74,7 +74,7 @@ if (count($pictures) > 0)
: '' ))
);
if ($user['show_nb_comments'])
if ($conf['activate_comments'] and $user['show_nb_comments'])
{
$query = '
SELECT image_id, COUNT(*) AS nb_comments