forked from Public/pics
Merge pull request 'ViewPeople: fix incorrect pagination count' (#55) from yorick/pics:fix/viewpeople-pagination-count into master
Reviewed-on: Public/pics#55
This commit is contained in:
@@ -18,7 +18,7 @@ class ViewPeople extends HTMLController
|
||||
|
||||
$page = isset($_GET['page']) ? (int) $_GET['page'] : 1;
|
||||
$start = ($page - 1) * self::PER_PAGE;
|
||||
$total_count = Tag::getCount(1, 'Person');
|
||||
$total_count = Tag::getCount(1, 'Person', true);
|
||||
|
||||
// Fetch subalbums.
|
||||
$subalbums = Tag::getPeople(0, $start, self::PER_PAGE);
|
||||
|
||||
Reference in New Issue
Block a user