mirror of
https://github.com/Piwigo/Piwigo.git
synced 2026-08-11 11:13:02 +02:00
- 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
This commit is contained in:
+10
-7
@@ -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',
|
||||
|
||||
Reference in New Issue
Block a user