]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
Fix to put @class current on the navigation of the page viewed
authorsarven <csarven@plantard.controlezvous.ca>
Fri, 16 Jan 2009 23:13:22 +0000 (23:13 +0000)
committersarven <csarven@plantard.controlezvous.ca>
Fri, 16 Jan 2009 23:13:22 +0000 (23:13 +0000)
lib/action.php

index 5ff536dab2ed8c4dd82714cd08e76e6c83d85828..fce9df4da7a1097e19b0f39719d1768f22498e72 100644 (file)
@@ -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;