Allow users to filter albums by contributors #48
| @ -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 | ||||
| 		{ | ||||
| 
					
					Aaron marked this conversation as resolved
					
				 | ||||
| 			$back_link = BASEURL . '/people/'; | ||||
| 			$back_link_title = 'Back to "People"'; | ||||
| 			$is_person = true; | ||||
| 		} | ||||
| 
 | ||||
| 		$description = !empty($tag->description) ? $tag->description : ''; | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user
	
Unused here