Remove lang method from paginator class.
This commit is contained in:
@@ -37,13 +37,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.
|
||||||
*
|
*
|
||||||
@@ -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 {
|
|||||||
*/
|
*/
|
||||||
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 {
|
|||||||
return $pages;
|
return $pages;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* Set the paginator language.
|
|
||||||
*
|
|
||||||
* @param string $language
|
|
||||||
* @return Paginator
|
|
||||||
*/
|
|
||||||
public function lang($language)
|
|
||||||
{
|
|
||||||
$this->language = $language;
|
|
||||||
return $this;
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user