Tweak Query->paginate for new paginator constructor API.

This commit is contained in:
Taylor Otwell 2011-07-25 14:09:08 -07:00
parent e9397b7107
commit db6b93f668
1 changed files with 1 additions and 1 deletions

View File

@ -466,7 +466,7 @@ public function paginate($per_page)
$current_page = \System\Paginator::page($total, $per_page);
return new \System\Paginator($this->for_page($current_page, $per_page)->get(), $total, $per_page);
return \System\Paginator::make($this->for_page($current_page, $per_page)->get(), $total, $per_page);
}
/**