forked from Public/pics
ViewPhotoAlbum: add ?in param for root tags, too
This was probably intended as an optimisation, but people tags are at root level, and so id_parent == 0.
This commit is contained in:
parent
f0d286179a
commit
9d4f35a0fd
@ -102,7 +102,7 @@ class ViewPhotoAlbum extends HTMLController
|
|||||||
$this->page->adopt($index);
|
$this->page->adopt($index);
|
||||||
|
|
||||||
$url_params = [];
|
$url_params = [];
|
||||||
if (isset($tag) && $tag->id_parent != 0)
|
if (isset($tag))
|
||||||
$url_params['in'] = $tag->id_tag;
|
$url_params['in'] = $tag->id_tag;
|
||||||
if (!empty($active_filter))
|
if (!empty($active_filter))
|
||||||
$url_params['by'] = $active_filter;
|
$url_params['by'] = $active_filter;
|
||||||
|
Loading…
Reference in New Issue
Block a user