From f007a28bf6a40632e06f227a59f45d525136f9f4 Mon Sep 17 00:00:00 2001 From: z0rglub Date: Fri, 9 Jul 2004 21:00:00 +0000 Subject: replacement of short_period and long_period by recent_period git-svn-id: http://piwigo.org/svn/trunk@452 68402e56-0260-453c-a942-63ccdbb3a9ee --- include/category_recent_cats.inc.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'include/category_recent_cats.inc.php') diff --git a/include/category_recent_cats.inc.php b/include/category_recent_cats.inc.php index 3bfc1f524..c91a738fa 100644 --- a/include/category_recent_cats.inc.php +++ b/include/category_recent_cats.inc.php @@ -38,7 +38,7 @@ $query = ' SELECT id AS category_id FROM '.CATEGORIES_TABLE.' WHERE date_last > SUBDATE(CURRENT_DATE - ,INTERVAL '.$user['short_period'].' DAY)'; + ,INTERVAL '.$user['recent_period'].' DAY)'; if ( $user['forbidden_categories'] != '' ) { $query.= ' @@ -70,7 +70,7 @@ SELECT id,file,tn_ext,storage_category_id FROM '.IMAGES_TABLE.', '.IMAGE_CATEGORY_TABLE.' WHERE category_id = '.$row['category_id'].' AND date_available > SUBDATE(CURRENT_DATE - ,INTERVAL '.$user['short_period'].' DAY) + ,INTERVAL '.$user['recent_period'].' DAY) AND id = image_id ORDER BY RAND() LIMIT 0,1 -- cgit v1.2.3