use language in paginator class.

This commit is contained in:
Taylor Otwell
2011-07-26 23:23:34 -05:00
parent 7e439ab52e
commit c76d0fb669
2 changed files with 8 additions and 6 deletions

View File

@@ -150,7 +150,7 @@ class Paginator {
*/
public function previous()
{
$text = Lang::line('pagination.previous')->get();
$text = Lang::line('pagination.previous')->get($this->language);
return ($this->page > 1) ? $this->link($this->page - 1, $text, 'prev_page').' ' : HTML::span($text, array('class' => 'disabled prev_page')).' ';
}
@@ -162,7 +162,7 @@ class Paginator {
*/
public function next()
{
$text = Lang::line('pagination.next')->get();
$text = Lang::line('pagination.next')->get($this->language);
return ($this->page < $this->last_page) ? $this->link($this->page + 1, $text, 'next_page') : HTML::span($text, array('class' => 'disabled next_page'));
}