replace recent category by recent_pics (to have a difference with

recent_cats)


git-svn-id: http://piwigo.org/svn/trunk@434 68402e56-0260-453c-a942-63ccdbb3a9ee
This commit is contained in:
z0rglub 2004-06-16 20:36:24 +00:00
parent 3a09e40418
commit ca5cb5bf94

View file

@ -96,7 +96,7 @@ function check_cat_id( $cat )
or $cat == 'search'
or $cat == 'most_visited'
or $cat == 'best_rated'
or $cat == 'recent'
or $cat == 'recent_pics'
or $cat == 'calendar' )
{
$page['cat'] = $cat;
@ -431,7 +431,7 @@ function initialize_category( $calling_page = 'category' )
{
if ( $page['cat'] == 'search'
or $page['cat'] == 'most_visited'
or $page['cat'] == 'recent'
or $page['cat'] == 'recent_pics'
or $page['cat'] == 'best_rated'
or $page['cat'] == 'calendar' )
{
@ -510,9 +510,9 @@ function initialize_category( $calling_page = 'category' )
$query.= ';';
}
// pictures within the short period
else if ( $page['cat'] == 'recent' )
else if ( $page['cat'] == 'recent_pics' )
{
$page['title'] = $lang['recent_cat_title'];
$page['title'] = $lang['recent_pics_cat_title'];
// We must find the date corresponding to :
// today - $conf['periode_courte']
$date = time() - 60*60*24*$user['short_period'];