From c501688dbc98428635bdf569dc9c136e24fbd9a9 Mon Sep 17 00:00:00 2001 From: mistic100 Date: Sat, 14 Jan 2012 22:29:10 +0000 Subject: feature:2549 Allow to disable comments for everybody git-svn-id: http://piwigo.org/svn/trunk@12887 68402e56-0260-453c-a942-63ccdbb3a9ee --- include/menubar.inc.php | 17 ++++++++++------- 1 file changed, 10 insertions(+), 7 deletions(-) (limited to 'include/menubar.inc.php') diff --git a/include/menubar.inc.php b/include/menubar.inc.php index 14a96ff9e..c017a5d64 100644 --- a/include/menubar.inc.php +++ b/include/menubar.inc.php @@ -257,13 +257,16 @@ function initialize_menu() 'REL'=> 'rel="search"' ); - // comments link - $block->data['comments'] = - array( - 'TITLE'=>l10n('display last user comments'), - 'NAME'=>l10n('Comments'), - 'URL'=> get_root_url().'comments.php', - ); + if ($conf['activate_comments']) + { + // comments link + $block->data['comments'] = + array( + 'TITLE'=>l10n('display last user comments'), + 'NAME'=>l10n('Comments'), + 'URL'=> get_root_url().'comments.php', + ); + } // about link $block->data['about'] = -- cgit v1.2.3