diff --git a/system/paginator.php b/system/paginator.php index 1507c348..e91ff63d 100644 --- a/system/paginator.php +++ b/system/paginator.php @@ -72,11 +72,7 @@ public function __construct($results, $total, $per_page) */ public static function page($total, $per_page) { - $last_page = ceil($total / $per_page); - - $page = Input::get('page', 1); - - if (is_numeric($page) and $page > $last_page) + if (is_numeric($page = Input::get('page', 1)) and $page > $last_page = ceil($total / $per_page)) { return $last_page; } @@ -92,12 +88,7 @@ public static function page($total, $per_page) */ public function links($adjacent = 3) { - if ($this->last_page() > 1) - { - return '