aboutsummaryrefslogtreecommitdiffstats
path: root/category.php
diff options
context:
space:
mode:
authorplegall <plg@piwigo.org>2005-09-18 22:29:17 +0000
committerplegall <plg@piwigo.org>2005-09-18 22:29:17 +0000
commit541c302c4023cc5514f6d09cc6eff1abd8543eb5 (patch)
treed93e673da677fb7b1bfc15b60077d693a266afd8 /category.php
parentb1c5e25b5e4eed872230ebffe72cc7ece4533ee2 (diff)
- bug 111 fixed: "Can't add virtual category when cookie
disabled". Correction reported from branch 1.4. - bug 109 fixed : "disabled "best rated" menu item when rating is not enabled". Correction reported from branch 1.4. - bug 95 fixed : "default maxwidth and maxheight not registered". Correction reported from branch 1.4. git-svn-id: http://piwigo.org/svn/trunk@869 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to '')
-rw-r--r--category.php18
1 files changed, 11 insertions, 7 deletions
diff --git a/category.php b/category.php
index a28601e10..c62bb3e31 100644
--- a/category.php
+++ b/category.php
@@ -214,13 +214,17 @@ $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',