diff options
Diffstat (limited to 'category.php')
-rw-r--r-- | category.php | 18 |
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', |