better page numbers
darcs-hash:20080528173417-84dde-033ab1f9a30c1b19c1f2b5a5b6ea652d94c226e7.gz
This commit is contained in:
parent
0a60c577de
commit
182aa9a101
@ -261,7 +261,7 @@ class ShowstreamAction extends StreamAction {
|
|||||||
|
|
||||||
$notice->orderBy('created DESC');
|
$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);
|
$notice->limit((($page-1)*NOTICES_PER_PAGE), NOTICES_PER_PAGE + 1);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user