diff --git a/laravel/documentation/views/pagination.md b/laravel/documentation/views/pagination.md
index 95b5479b..081a6f60 100644
--- a/laravel/documentation/views/pagination.md
+++ b/laravel/documentation/views/pagination.md
@@ -80,29 +80,31 @@ Sometimes you may need to create a Paginator instance manually, without using th
All pagination link elements can be style using CSS classes. Here is an example of the HTML elements generated by the links method:
When you are on the first page of results, the "Previous" link will be disabled. Likewise, the "Next" link will be disabled when you are on the last page of results. The generated HTML will look like this:
- Previous
+ Previous
diff --git a/laravel/paginator.php b/laravel/paginator.php
index 3deb5f61..e9b95e35 100644
--- a/laravel/paginator.php
+++ b/laravel/paginator.php
@@ -65,7 +65,7 @@ class Paginator {
*
* @var string
*/
- protected $dots = '...';
+ protected $dots = '...';
/**
* Create a new Paginator instance.
@@ -183,7 +183,7 @@ class Paginator {
$links = $this->slider($adjacent);
}
- $content = $this->previous().' '.$links.' '.$this->next();
+ $content = '' . $this->previous() . $links . $this->next() . '
';
return '';
}
@@ -300,7 +300,7 @@ class Paginator {
// the "first" element should be a span instead of a link.
if ($disabled($this->page, $this->last))
{
- return HTML::span($text, array('class' => "{$class} disabled"));
+ return '"{$class} disabled")).'>'.$text.'';
}
else
{
@@ -349,7 +349,7 @@ class Paginator {
{
if ($this->page == $page)
{
- $pages[] = HTML::span($page, array('class' => 'current'));
+ $pages[] = ''.$page.'';
}
else
{
@@ -372,7 +372,7 @@ class Paginator {
{
$query = '?page='.$page.$this->appendage($this->appends);
- return HTML::link(URI::current().$query, $text, compact('class'), Request::secure());
+ return ' $class)).'>'. HTML::link(URI::current().$query, $text, array(), Request::secure()).'';
}
/**