diff options
Diffstat (limited to '')
-rw-r--r-- | include/category_default.inc.php | 2 | ||||
-rw-r--r-- | include/menubar.inc.php | 17 |
2 files changed, 11 insertions, 8 deletions
diff --git a/include/category_default.inc.php b/include/category_default.inc.php index 61c81aa9e..8d2cd050b 100644 --- a/include/category_default.inc.php +++ b/include/category_default.inc.php @@ -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 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'] = |