|
@@ -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;
|
|
|
- }
|
|
|
-
|
|
|
}
|