aboutsummaryrefslogtreecommitdiffstats
path: root/category.php
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--category.php8
1 files changed, 6 insertions, 2 deletions
diff --git a/category.php b/category.php
index 781d3bda1..9ce531e53 100644
--- a/category.php
+++ b/category.php
@@ -125,7 +125,7 @@ $template->assign_vars(array(
'NB_PICTURE' => count_user_total_images(),
'TITLE' => $template_title,
'USERNAME' => $user['username'],
- 'TOP_VISITED'=>$conf['top_number'],
+ 'TOP_NUMBER'=>$conf['top_number'],
'MENU_CATEGORIES_CONTENT'=>$page['menu'],
'L_CATEGORIES' => $lang['categories'],
@@ -138,6 +138,8 @@ $template->assign_vars(array(
'L_SPECIAL_CATEGORIES' => $lang['special_categories'],
'L_MOST_VISITED_HINT' => $lang['most_visited_cat_hint'],
'L_MOST_VISITED' => $lang['most_visited_cat'],
+ 'L_BEST_RATED_HINT' => $lang['best_rated_cat_hint'],
+ 'L_BEST_RATED' => $lang['best_rated_cat'],
'L_RECENT_PICS_HINT' => $lang['recent_pics_cat_hint'],
'L_RECENT_PICS' => $lang['recent_pics_cat'],
'L_RECENT_CATS_HINT' => $lang['recent_cats_cat_hint'],
@@ -166,6 +168,7 @@ $template->assign_vars(array(
'U_HOME' => add_session_id( PHPWG_ROOT_PATH.'category.php' ),
'U_FAVORITE' => add_session_id( PHPWG_ROOT_PATH.'category.php?cat=fav' ),
'U_MOST_VISITED'=>add_session_id( PHPWG_ROOT_PATH.'category.php?cat=most_visited' ),
+ 'U_BEST_RATED'=>add_session_id(PHPWG_ROOT_PATH.'category.php?cat=best_rated'),
'U_RECENT_PICS'=>add_session_id( PHPWG_ROOT_PATH.'category.php?cat=recent_pics' ),
'U_RECENT_CATS'=>add_session_id( PHPWG_ROOT_PATH.'category.php?cat=recent_cats' ),
'U_CALENDAR'=>add_session_id( PHPWG_ROOT_PATH.'category.php?cat=calendar' ),
@@ -228,7 +231,8 @@ if (isset($page['cat'])
and ((is_numeric($page['cat']) and $page['cat_nb_images'] != 0)
or $page['cat'] == 'search'
or $page['cat'] == 'most_visited'
- or $page['cat'] == 'recent_pics'))
+ or $page['cat'] == 'recent_pics'
+ or $page['cat'] == 'best_rated'))
{
include(PHPWG_ROOT_PATH.'include/category_default.inc.php');
}