Fixed 2 stupid bugs for better markup

Thats it .. pulling on the docs now
This commit is contained in:
kapil verma 2012-09-11 07:48:01 +05:30
parent 4de8921f2d
commit 85cab82f37
1 changed files with 2 additions and 2 deletions

View File

@ -300,7 +300,7 @@ protected function element($element, $page, $text, $disabled)
// the "first" element should be a span instead of a link.
if ($disabled($this->page, $this->last))
{
return '<li'.HTML::attributes(array('class'=>"{$class} disabled")).'><a href="#">'.$text.'</a>';
return '<li'.HTML::attributes(array('class'=>"{$class} disabled")).'><a href="#">'.$text.'</a></li>';
}
else
{
@ -372,7 +372,7 @@ protected function link($page, $text, $class)
{
$query = '?page='.$page.$this->appendage($this->appends);
return '<li'.HTML::attributes(compact($class)).'>'. HTML::link(URI::current().$query, $text, array(), Request::secure()).'</li>';
return '<li'.HTML::attributes(array('class' => $class)).'>'. HTML::link(URI::current().$query, $text, array(), Request::secure()).'</li>';
}
/**