Page numbering bugfix.
This commit is contained in:
parent
bc83d543f8
commit
897056816e
@ -39,7 +39,9 @@ class latestupdates_Controller extends Controller {
|
|||||||
// for page numbering purposes.
|
// for page numbering purposes.
|
||||||
$count = $item
|
$count = $item
|
||||||
->viewable()
|
->viewable()
|
||||||
->descendants_count(null, null, array(array("type", "!=", "album")));
|
->where("type", "!=", "album")
|
||||||
|
->order_by("created", "DESC")
|
||||||
|
->descendants_count();
|
||||||
|
|
||||||
// Figure out what the highest page number is.
|
// Figure out what the highest page number is.
|
||||||
$max_pages = ceil($count / $page_size);
|
$max_pages = ceil($count / $page_size);
|
||||||
|
Reference in New Issue
Block a user