diff options
author | mistic100 <mistic@piwigo.org> | 2012-01-14 22:29:10 +0000 |
---|---|---|
committer | mistic100 <mistic@piwigo.org> | 2012-01-14 22:29:10 +0000 |
commit | c501688dbc98428635bdf569dc9c136e24fbd9a9 (patch) | |
tree | e60e9507668a8f508ddadf2b5b7fed333598d95d /comments.php | |
parent | a412558492bf24ee9c39502ac37730ff4bc40177 (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-- | comments.php | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/comments.php b/comments.php index b75dc190b..5520e7933 100644 --- a/comments.php +++ b/comments.php @@ -28,6 +28,11 @@ define('PHPWG_ROOT_PATH','./'); include_once(PHPWG_ROOT_PATH.'include/common.inc.php'); include_once(PHPWG_ROOT_PATH.'include/functions_comment.inc.php'); +if (!$conf['activate_comments']) +{ + page_not_found(null); +} + // +-----------------------------------------------------------------------+ // | Check Access and exit when user status is not ok | // +-----------------------------------------------------------------------+ |