From 49fe1e3a87db8dab320e371b786f71b9f1ed48e1 Mon Sep 17 00:00:00 2001 From: Taylor Otwell Date: Fri, 22 Jul 2011 12:39:43 -0700 Subject: [PATCH] Edited system/paginator.php via GitHub --- system/paginator.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/system/paginator.php b/system/paginator.php index c1315fa3..d633ab4b 100644 --- a/system/paginator.php +++ b/system/paginator.php @@ -62,10 +62,12 @@ class Paginator { public function __construct($results, $total, $per_page) { $this->page = static::page($total, $per_page); - $this->last_page = ceil($total / $per_page); + $this->per_page = $per_page; $this->results = $results; $this->total = $total; + + $this->last_page = ceil($total / $per_page); } /**