From a6a2588ed160de03dbf5f6d9e06033e46ad910c2 Mon Sep 17 00:00:00 2001 From: Taylor Otwell Date: Mon, 25 Jul 2011 13:34:54 -0700 Subject: [PATCH] A few more tweaks to the paginator class. --- system/paginator.php | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/system/paginator.php b/system/paginator.php index 8e85bbee..a15a13bf 100644 --- a/system/paginator.php +++ b/system/paginator.php @@ -47,12 +47,10 @@ class Paginator { */ public function __construct($results, $total, $per_page) { + $this->page = static::page($total, $per_page); $this->per_page = $per_page; $this->results = $results; $this->total = $total; - - // Determine the current page based on the total results and per page limit. - $this->page = static::page($this->total, $this->per_page); } /**