Edited system/paginator.php via GitHub

This commit is contained in:
Taylor Otwell 2011-07-22 12:58:50 -07:00
parent 49fe1e3a87
commit bbfc8b888a
1 changed files with 1 additions and 3 deletions

View File

@ -62,12 +62,10 @@ class Paginator {
public function __construct($results, $total, $per_page) public function __construct($results, $total, $per_page)
{ {
$this->page = static::page($total, $per_page); $this->page = static::page($total, $per_page);
$this->last_page = ceil($total / $per_page);
$this->per_page = $per_page; $this->per_page = $per_page;
$this->results = $results; $this->results = $results;
$this->total = $total; $this->total = $total;
$this->last_page = ceil($total / $per_page);
} }
/** /**