Allow users to filter albums by contributors #48
Loading…
x
Reference in New Issue
Block a user
No description provided.
Delete Branch "refactor/viewalbum"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
?by, analogous to?in)Allow users to filter albums by contributorsto WIP: Allow users to filter albums by contributorsWIP: Allow users to filter albums by contributorsto Allow users to filter albums by contributors35cb6798c8to1f53689e4bFixes #13
@ -66,0 +50,4 @@$filters = [];if (!empty($contributors)){$filters[''] = ['id_user' => null, 'caption' => 'Show all photos', 'link' => $tag->getUrl()];Key
labelmissingI initially didn't add it as it'd never be used. You're right, though, and it's better to just have it there for consistency.
@ -74,3 +91,3 @@// Load a photo mosaic for the current tag.list($mosaic, $total_count) = $this->getPhotoMosaic($id_tag, $page, !isset($is_person));list($mosaic, $total_count) = $this->getPhotoMosaic($id_tag, $id_user_uploaded, $current_page, !isset($is_person));$is_personis never set(At $employer we had the convention to always use
!== nullinstead ofissetwhen you expect the variable to exist to catch these kind of errors.empty()was also discouraged for this reason)Yeah, I don't like this either. I've opted instead to explicitly declare it as a boolean before it's used.
@ -201,0 +235,4 @@{$back_link = BASEURL . '/people/';$back_link_title = 'Back to "People"';$is_person = true;Unused here
f82bd7b065to30bc0bb884