1
0

Page numbering bugfix.

This commit is contained in:
rWatcher 2010-02-26 14:19:53 -05:00
parent bc83d543f8
commit 897056816e

View File

@ -39,7 +39,9 @@ class latestupdates_Controller extends Controller {
// for page numbering purposes.
$count = $item
->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.
$max_pages = ceil($count / $page_size);