aboutsummaryrefslogtreecommitdiffstats
path: root/picture.php
diff options
context:
space:
mode:
authormistic100 <mistic@piwigo.org>2012-01-14 22:29:10 +0000
committermistic100 <mistic@piwigo.org>2012-01-14 22:29:10 +0000
commitc501688dbc98428635bdf569dc9c136e24fbd9a9 (patch)
treee60e9507668a8f508ddadf2b5b7fed333598d95d /picture.php
parenta412558492bf24ee9c39502ac37730ff4bc40177 (diff)
feature:2549 Allow to disable comments for everybody
git-svn-id: http://piwigo.org/svn/trunk@12887 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to '')
-rw-r--r--picture.php5
1 files changed, 4 insertions, 1 deletions
diff --git a/picture.php b/picture.php
index 7f5878e60..1d35b9613 100644
--- a/picture.php
+++ b/picture.php
@@ -965,7 +965,10 @@ if (isset($picture['next'])
// +-----------------------------------------------------------------------+
include(PHPWG_ROOT_PATH.'include/picture_rate.inc.php');
-include(PHPWG_ROOT_PATH.'include/picture_comment.inc.php');
+if ($conf['activate_comments'])
+{
+ include(PHPWG_ROOT_PATH.'include/picture_comment.inc.php');
+}
if ($metadata_showable and pwg_get_session_var('show_metadata') <> null )
{
include(PHPWG_ROOT_PATH.'include/picture_metadata.inc.php');