aboutsummaryrefslogtreecommitdiffstats
path: root/include/category_recent_cats.inc.php
diff options
context:
space:
mode:
authorz0rglub <z0rglub@piwigo.org>2004-07-09 21:00:00 +0000
committerz0rglub <z0rglub@piwigo.org>2004-07-09 21:00:00 +0000
commitf007a28bf6a40632e06f227a59f45d525136f9f4 (patch)
tree485c61ab3eb812b1807bd0d40ee682964dd59d1d /include/category_recent_cats.inc.php
parent2cf37f308e0d530fa642b016dfb4a0db24b5a883 (diff)
replacement of short_period and long_period by recent_period
git-svn-id: http://piwigo.org/svn/trunk@452 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to 'include/category_recent_cats.inc.php')
-rw-r--r--include/category_recent_cats.inc.php4
1 files changed, 2 insertions, 2 deletions
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