From f7f790301fd51db34b4c3052a7fdcfc2eeb8c072 Mon Sep 17 00:00:00 2001 From: Taylor Otwell Date: Fri, 22 Jul 2011 09:36:07 -0700 Subject: [PATCH] Added lang method to Paginator. --- system/paginator.php | 34 +++++++++++++++++++++++++--------- 1 file changed, 25 insertions(+), 9 deletions(-) diff --git a/system/paginator.php b/system/paginator.php index e9df4a43..1507c348 100644 --- a/system/paginator.php +++ b/system/paginator.php @@ -37,6 +37,13 @@ class Paginator { */ public $last_page; + /** + * The language being used by the paginator. + * + * @var string + */ + public $language; + /** * Create a new Paginator instance. * @@ -81,14 +88,13 @@ class Paginator { * Create the HTML pagination links. * * @param int $adjacent - * @param string $language * @return string */ - public function links($adjacent = 3, $language = null) + public function links($adjacent = 3) { if ($this->last_page() > 1) { - return '