Skip to content

Commit

Permalink
改进分页类
Browse files Browse the repository at this point in the history
  • Loading branch information
liu21st committed Sep 12, 2017
1 parent 5a74ffc commit 568864e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion library/think/Paginator.php
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ protected function url($page)
*/
public static function getCurrentPage($varPage = 'page', $default = 1)
{
$page = (int) Request::instance()->request($varPage);
$page = (int) Request::instance()->param($varPage);

if (filter_var($page, FILTER_VALIDATE_INT) !== false && $page >= 1) {
return $page;
Expand Down

0 comments on commit 568864e

Please sign in to comment.