Fix to put @class current on the navigation of the page viewed

This commit is contained in:
sarven 2009-01-16 23:13:22 +00:00
parent 98e8a24d88
commit b7dd4d2ad1

View File

@ -566,7 +566,7 @@ class Action extends HTMLOutputter // lawsuit
$lattrs['class'] = 'current'; $lattrs['class'] = 'current';
} }
$this->elementStart('li', (is_null($id)) ? null : array('id' => $id), $lattrs); $this->elementStart('li', (is_null($id)) ? $lattrs : array_merge(array('id' => $id), $lattrs));
$attrs['href'] = $url; $attrs['href'] = $url;
if ($title) { if ($title) {
$attrs['title'] = $title; $attrs['title'] = $title;