Commit 677747c4 authored by Taylor Otwell's avatar Taylor Otwell

Remove lang method from paginator class.

parent de48e194
......@@ -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
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