From 5046b3c2105bdfae23d6835c110606ea9e7ff055 Mon Sep 17 00:00:00 2001 From: rub Date: Wed, 13 Dec 2006 00:05:16 +0000 Subject: Feature Issue ID 0000601: Filter all public pages with only recent elements Last draft before final development. There a icon for global mode and one other for local mode. Counters are not good, filter on images are not everywhere applied, moment to update cache are not optimized, ... Go to http://forum.phpwebgallery.net/viewtopic.php?id=9490 git-svn-id: http://piwigo.org/svn/trunk@1651 68402e56-0260-453c-a942-63ccdbb3a9ee --- include/category_default.inc.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'include/category_default.inc.php') diff --git a/include/category_default.inc.php b/include/category_default.inc.php index ae2dc4dce..1fff71956 100644 --- a/include/category_default.inc.php +++ b/include/category_default.inc.php @@ -47,7 +47,7 @@ if (count($selection) > 0) SELECT * FROM '.IMAGES_TABLE.' WHERE id IN ('.implode(',', $selection).')'; - if ($page['filter_mode']) + if ($page['filter_local_mode'] or $user['filter_global_mode']) { $query.= ' AND date_available > SUBDATE( -- cgit v1.2.3