Skip to content
This repository has been archived by the owner on Jan 20, 2024. It is now read-only.

Commit

Permalink
Allowed for spaces in circle names for newsfeed filter.
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelchisari authored and The Appleseed Project committed Nov 18, 2010
1 parent 9f50f0c commit bd23b73
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions components/newsfeed/controllers/menu.php
Original file line number Diff line number Diff line change
Expand Up @@ -74,8 +74,8 @@ private function _Prep ( ) {
$row = new cHTML ();
$row->Load ( $rowOriginal );
$row->Find ( '.link', 0 )->innertext = $circle;
$row->Find ( '.link', 0 )->href = '/profile/' . $this->_Current->Username . '/news/' . $circle;
if ( $Current == $circle ) $row->Find ( '.item', 0 )->class .= ' selected ';
$row->Find ( '.link', 0 )->href = '/profile/' . $this->_Current->Username . '/news/' . urlencode ( str_replace ( ' ', '-', $circle ) );
if ( $Current == strtolower ( $circle ) ) $row->Find ( '.item', 0 )->class .= ' selected ';
$li->innertext .= $row->outertext;
unset ( $row );
}
Expand Down

0 comments on commit bd23b73

Please sign in to comment.