From 677747c4ca3f0d44311b5869a51004c8e5af75e0 Mon Sep 17 00:00:00 2001 From: Taylor Otwell Date: Fri, 22 Jul 2011 09:54:06 -0700 Subject: [PATCH] Remove lang method from paginator class. --- system/paginator.php | 23 ++--------------------- 1 file changed, 2 insertions(+), 21 deletions(-) diff --git a/system/paginator.php b/system/paginator.php index 60b7f4cb..e4cfe123 100644 --- a/system/paginator.php +++ b/system/paginator.php @@ -37,13 +37,6 @@ class Paginator { */ public $last_page; - /** - * The language being used by the paginator. - * - * @var string - */ - public $language; - /** * Create a new Paginator instance. * @@ -138,7 +131,7 @@ class Paginator { */ public function previous() { - $text = Lang::line('pagination.previous')->get($this->language); + $text = Lang::line('pagination.previous')->get(); if ($this->page > 1) { @@ -155,7 +148,7 @@ class Paginator { */ public function next() { - $text = Lang::line('pagination.next')->get($this->language); + $text = Lang::line('pagination.next')->get(); if ($this->page < $this->last_page) { @@ -206,16 +199,4 @@ class Paginator { return $pages; } - /** - * Set the paginator language. - * - * @param string $language - * @return Paginator - */ - public function lang($language) - { - $this->language = $language; - return $this; - } - } \ No newline at end of file