mirror of
https://github.com/Piwigo/Piwigo.git
synced 2026-05-03 20:12:44 +02:00
- new category added : recent_cats
git-svn-id: http://piwigo.org/svn/trunk@437 68402e56-0260-453c-a942-63ccdbb3a9ee
This commit is contained in:
@@ -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' )
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user