show correct favorites link

This commit is contained in:
Evan Prodromou 2011-09-17 17:00:30 -04:00
parent baa17381c0
commit 945bdf649b
1 changed files with 7 additions and 1 deletions

View File

@ -69,6 +69,12 @@ class PopularNoticeSection extends NoticeSection
function moreUrl()
{
return common_local_url('favorited');
if (common_config('singleuser', 'enabled')) {
$user = User::singleUser();
common_local_url('showfavorites', array('nickname' =>
$user->nickname));
} else {
return common_local_url('favorited');
}
}
}