Commit 677747c4 by Taylor Otwell

Remove lang method from paginator class.

parent de48e194
...@@ -38,13 +38,6 @@ class Paginator { ...@@ -38,13 +38,6 @@ class Paginator {
public $last_page; public $last_page;
/** /**
* The language being used by the paginator.
*
* @var string
*/
public $language;
/**
* Create a new Paginator instance. * Create a new Paginator instance.
* *
* @param array $results * @param array $results
...@@ -138,7 +131,7 @@ class Paginator { ...@@ -138,7 +131,7 @@ class Paginator {
*/ */
public function previous() public function previous()
{ {
$text = Lang::line('pagination.previous')->get($this->language); $text = Lang::line('pagination.previous')->get();
if ($this->page > 1) if ($this->page > 1)
{ {
...@@ -155,7 +148,7 @@ class Paginator { ...@@ -155,7 +148,7 @@ class Paginator {
*/ */
public function next() public function next()
{ {
$text = Lang::line('pagination.next')->get($this->language); $text = Lang::line('pagination.next')->get();
if ($this->page < $this->last_page) if ($this->page < $this->last_page)
{ {
...@@ -206,16 +199,4 @@ class Paginator { ...@@ -206,16 +199,4 @@ class Paginator {
return $pages; 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
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment