diff options
author | plegall <plg@piwigo.org> | 2005-04-30 15:23:28 +0000 |
---|---|---|
committer | plegall <plg@piwigo.org> | 2005-04-30 15:23:28 +0000 |
commit | 6f269bc0358cbbc1e14acc52ac8146c1a64bc159 (patch) | |
tree | a6c4c9c755db2c6734beaf79dc24dddc02269db1 | |
parent | b56bd6748a134ef35be64624724ac82bc922906a (diff) |
- bug 109 fixed : disabled "best rated" menu item when rating is not
enabled. Trivial correction.
git-svn-id: http://piwigo.org/svn/branches/branch-1_4@778 68402e56-0260-453c-a942-63ccdbb3a9ee
-rw-r--r-- | category.php | 17 |
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', |