forked from Public/pics
ViewPhotoAlbum: move $is_person declaration to where it's used
This commit is contained in:
parent
1f53689e4b
commit
5d990501f6
@ -89,8 +89,11 @@ class ViewPhotoAlbum extends HTMLController
|
||||
$this->page->adopt($index);
|
||||
}
|
||||
|
||||
// Are we viewing a person tag?
|
||||
$is_person = $tag->kind === 'Person';
|
||||
|
||||
// Load a photo mosaic for the current tag.
|
||||
list($mosaic, $total_count) = $this->getPhotoMosaic($id_tag, $id_user_uploaded, $current_page, !isset($is_person));
|
||||
list($mosaic, $total_count) = $this->getPhotoMosaic($id_tag, $id_user_uploaded, $current_page, !$is_person);
|
||||
if (isset($mosaic))
|
||||
{
|
||||
$index = new PhotosIndex($mosaic, Registry::get('user')->isAdmin());
|
||||
@ -235,7 +238,6 @@ class ViewPhotoAlbum extends HTMLController
|
||||
{
|
||||
$back_link = BASEURL . '/people/';
|
||||
$back_link_title = 'Back to "People"';
|
||||
$is_person = true;
|
||||
}
|
||||
|
||||
$description = !empty($tag->description) ? $tag->description : '';
|
||||
|
Loading…
Reference in New Issue
Block a user