Remove lang method from paginator class.

This commit is contained in:
Taylor Otwell 2011-07-22 09:54:06 -07:00
parent de48e194c7
commit 677747c4ca
1 changed files with 2 additions and 21 deletions

View File

@ -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 @@ private function slider($adjacent)
*/
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 @@ public function previous()
*/
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 @@ private function range($start, $end)
return $pages;
}
/**
* Set the paginator language.
*
* @param string $language
* @return Paginator
*/
public function lang($language)
{
$this->language = $language;
return $this;
}
}