From 9cdca2bad154c4b1b777d58d2f8ce12deb0cb14f Mon Sep 17 00:00:00 2001 From: z0rglub Date: Fri, 18 Jun 2004 23:24:40 +0000 Subject: - new category added : recent_cats git-svn-id: http://piwigo.org/svn/trunk@437 68402e56-0260-453c-a942-63ccdbb3a9ee --- include/functions_category.inc.php | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) (limited to 'include/functions_category.inc.php') diff --git a/include/functions_category.inc.php b/include/functions_category.inc.php index 09a923746..50dfe348e 100644 --- a/include/functions_category.inc.php +++ b/include/functions_category.inc.php @@ -63,7 +63,8 @@ function check_restrictions( $category_id ) * - equals 'search' (when the result of a search is displayed) * - equals 'most_visited' * - equals 'best_rated' - * - equals 'recent' + * - equals 'recent_pics' + * - equals 'recent_cats' * _ equals 'calendar' * * The function fills the global var $page['cat'] and returns nothing @@ -97,6 +98,7 @@ function check_cat_id( $cat ) or $cat == 'most_visited' or $cat == 'best_rated' or $cat == 'recent_pics' + or $cat == 'recent_cats' or $cat == 'calendar' ) { $page['cat'] = $cat; @@ -432,6 +434,7 @@ function initialize_category( $calling_page = 'category' ) if ( $page['cat'] == 'search' or $page['cat'] == 'most_visited' or $page['cat'] == 'recent_pics' + or $page['cat'] == 'recent_cats' or $page['cat'] == 'best_rated' or $page['cat'] == 'calendar' ) { @@ -527,6 +530,12 @@ function initialize_category( $calling_page = 'category' ) $query.= $page['where']; $query.= ';'; } + // categories containing recent pictures + else if ( $page['cat'] == 'recent_cats' ) + { + $page['title'] = $lang['recent_cats_cat_title']; + $page['cat_nb_images'] = 0; + } // most visited pictures else if ( $page['cat'] == 'most_visited' ) { -- cgit v1.2.3