mirror of
https://github.com/Piwigo/Piwigo.git
synced 2026-08-09 18:23:18 +02:00
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
This commit is contained in:
@@ -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';
|
||||
|
||||
Reference in New Issue
Block a user