aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorz0rglub <z0rglub@piwigo.org>2004-06-18 23:24:40 +0000
committerz0rglub <z0rglub@piwigo.org>2004-06-18 23:24:40 +0000
commit9cdca2bad154c4b1b777d58d2f8ce12deb0cb14f (patch)
tree099b19ca077f250b02aad7ee2dd40dff319acec8
parent4b76c0751e7c91219208002714c07568417dec96 (diff)
- new category added : recent_cats
git-svn-id: http://piwigo.org/svn/trunk@437 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to '')
-rw-r--r--include/functions_category.inc.php11
1 files changed, 10 insertions, 1 deletions
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' )
{