|
@@ -47,10 +47,12 @@ 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;
|
|
|
+
|
|
|
+
|
|
|
+ $this->page = static::page($this->total, $this->per_page);
|
|
|
}
|
|
|
|
|
|
|