Edited system/paginator.php via GitHub

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

View File

@ -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);
}
/**