diff options
author | rub <rub@piwigo.org> | 2006-12-13 00:05:16 +0000 |
---|---|---|
committer | rub <rub@piwigo.org> | 2006-12-13 00:05:16 +0000 |
commit | 5046b3c2105bdfae23d6835c110606ea9e7ff055 (patch) | |
tree | a6b497463d1b83edfe7f53d90d356765a5d4d0fd /include/functions_category.inc.php | |
parent | 5e9a4b02be26994e7d49a7d1ece7595a50b28c4b (diff) |
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
Diffstat (limited to '')
-rw-r--r-- | include/functions_category.inc.php | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/include/functions_category.inc.php b/include/functions_category.inc.php index 8113064d6..4ae2b126c 100644 --- a/include/functions_category.inc.php +++ b/include/functions_category.inc.php @@ -67,7 +67,7 @@ SELECT '; $query.= ' FROM '.CATEGORIES_TABLE.' INNER JOIN '.USER_CACHE_CATEGORIES_TABLE.' ON id = cat_id and user_id = '.$user['id']; - if ($page['filter_mode']) + if ($page['filter_local_mode']) { $query.= ' where max_date_last > SUBDATE( @@ -75,8 +75,8 @@ where max_date_last > SUBDATE( } else { - // Always expand when filter_mode is activated - if (!$user['expand']) + // Always expand when filter_local_mode is activated + if (!$user['expand'] and !$user['filter_global_mode']) { $query.= ' WHERE (id_uppercat is NULL'; |