aboutsummaryrefslogtreecommitdiffstats
path: root/category.php
diff options
context:
space:
mode:
authorplegall <plg@piwigo.org>2005-05-14 13:39:00 +0000
committerplegall <plg@piwigo.org>2005-05-14 13:39:00 +0000
commitb15c91743dcf2ee0ad1717f8bd0fce6aa1969c81 (patch)
tree2c05a2f64a09148ed7388eb81872c63805ec6fee /category.php
parent06dbb3790190144202df48f6f6265810b8d0f63d (diff)
This commit was manufactured by cvs2svn to create tag1.4.1
'release-1_4_1'. git-svn-id: http://piwigo.org/svn/tags/release-1_4_1@790 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to 'category.php')
-rw-r--r--category.php17
1 files changed, 10 insertions, 7 deletions
diff --git a/category.php b/category.php
index 09decc08a..ebb485db7 100644
--- a/category.php
+++ b/category.php
@@ -183,13 +183,16 @@ $template->assign_block_vars(
'NAME' => $lang['most_visited_cat']
));
// best rated
-$template->assign_block_vars(
- 'special_cat',
- array(
- 'URL' => add_session_id(PHPWG_ROOT_PATH.'category.php?cat=best_rated'),
- 'TITLE' => $lang['best_rated_cat_hint'],
- 'NAME' => $lang['best_rated_cat']
- ));
+if ($conf['rate'])
+{
+ $template->assign_block_vars(
+ 'special_cat',
+ array(
+ 'URL' => add_session_id(PHPWG_ROOT_PATH.'category.php?cat=best_rated'),
+ 'TITLE' => $lang['best_rated_cat_hint'],
+ 'NAME' => $lang['best_rated_cat']
+ ));
+}
// random
$template->assign_block_vars(
'special_cat',