better page numbers

darcs-hash:20080528173417-84dde-033ab1f9a30c1b19c1f2b5a5b6ea652d94c226e7.gz
This commit is contained in:
Evan Prodromou 2008-05-28 13:34:17 -04:00
parent 0a60c577de
commit 182aa9a101

View File

@ -261,7 +261,7 @@ class ShowstreamAction extends StreamAction {
$notice->orderBy('created DESC');
$page = $this->arg('page') || 1;
$page = ($this->arg('page')) ? ($this->arg('page')+0) : 1;
$notice->limit((($page-1)*NOTICES_PER_PAGE), NOTICES_PER_PAGE + 1);