From: sarven Date: Fri, 16 Jan 2009 23:13:22 +0000 (+0000) Subject: Fix to put @class current on the navigation of the page viewed X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=b7dd4d2ad1e93771cdff11198e7fdf81ca8633de;p=quix0rs-gnu-social.git Fix to put @class current on the navigation of the page viewed --- diff --git a/lib/action.php b/lib/action.php index 5ff536dab2..fce9df4da7 100644 --- a/lib/action.php +++ b/lib/action.php @@ -566,7 +566,7 @@ class Action extends HTMLOutputter // lawsuit $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; if ($title) { $attrs['title'] = $title;