fix RealtimePlugin root hack hack

This commit is contained in:
Evan Prodromou 2011-09-18 13:03:12 -04:00
parent be4e3593f5
commit e43ea4c9f5

View File

@ -294,9 +294,18 @@ class RealtimePlugin extends Plugin
// root url from page output // root url from page output
$action->elementStart('address'); $action->elementStart('address');
if (common_config('singleuser', 'enabled')) {
$user = User::singleUser();
$url = common_local_url('showstream', array('nickname' => $user->nickname));
} else {
$url = common_local_url('public');
}
$action->element('a', array('class' => 'url', $action->element('a', array('class' => 'url',
'href' => common_local_url('public')), 'href' => $url),
''); '');
$action->elementEnd('address'); $action->elementEnd('address');
$action->showContentBlock(); $action->showContentBlock();