fix RealtimePlugin root hack hack
This commit is contained in:
parent
be4e3593f5
commit
e43ea4c9f5
|
@ -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();
|
||||||
|
|
Loading…
Reference in New Issue
Block a user