Commit 5428b6de authored by ikkez's avatar ikkez
Browse files

page limit in paginate return

it would be nice to pass-through the max $size of a subset in the returned array, as you might need it for displaying pagebrowser stuff and this way you don't need to pass that limit value again to template by yourself.
parent 2681dbcf
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -90,6 +90,7 @@ abstract class Cursor extends \Magic {
				)
			),
			'total'=>$total,
			'limit'=>$size,
			'count'=>$count,
			'pos'=>$pos<$count?$pos:0
		);