diff options
author | Friendika <info@friendika.com> | 2011-07-01 06:23:09 -0700 |
---|---|---|
committer | Friendika <info@friendika.com> | 2011-07-01 06:23:09 -0700 |
commit | f53a2d6da95e88573c4a8e36d40f1c9327490025 (patch) | |
tree | 398d95c363ba4b864acf55e2094b3a9f9f771f79 /include/group.php | |
parent | b1aa77584f972b8c62fd099fa7fe08c36201b631 (diff) | |
download | volse-hubzilla-f53a2d6da95e88573c4a8e36d40f1c9327490025.tar.gz volse-hubzilla-f53a2d6da95e88573c4a8e36d40f1c9327490025.tar.bz2 volse-hubzilla-f53a2d6da95e88573c4a8e36d40f1c9327490025.zip |
add group highlight to other pages
Diffstat (limited to 'include/group.php')
-rw-r--r-- | include/group.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/group.php b/include/group.php index fd3439b85..30a023d41 100644 --- a/include/group.php +++ b/include/group.php @@ -145,7 +145,7 @@ function group_side($every="contacts",$each="group",$edit = false, $group_id = 0 $createtext = t('Create a new group'); $linktext= t('Everybody'); - $selected = (($group_id == 0 && $every !== 'contacts') ? ' class="group-selected" ' : ''); + $selected = (($group_id == 0) ? ' class="group-selected" ' : ''); $o .= <<< EOT <div id="group-sidebar"> @@ -166,7 +166,7 @@ EOT; ); if(count($r)) { foreach($r as $rr) - $selected = (($group_id == $rr['id'] && $every !== 'contacts') ? ' class="group-selected" ' : ''); + $selected = (($group_id == $rr['id']) ? ' class="group-selected" ' : ''); $o .= ' <li class="sidebar-group-li">' . (($edit) ? "<a href=\"group/{$rr['id']}\" title=\"" . t('Edit') . "\" ><img src=\"images/spencil.gif\" alt=\"" . t('Edit') . "\"></a> " : "") . "<a href=\"$each/{$rr['id']}\" $selected >{$rr['name']}</a></li>\r\n"; } $o .= " </ul>\r\n </div>\r\n</div>"; |