fix link for mobile profile when in singleuser mode
This commit is contained in:
parent
f52d33753e
commit
5c0e8d2a2f
@ -293,8 +293,16 @@ class MobileProfilePlugin extends WAP20Plugin
|
||||
function _showLogo($action)
|
||||
{
|
||||
$action->elementStart('address', 'vcard');
|
||||
if (common_config('singleuser', 'enabled')) {
|
||||
$user = User::singleUser();
|
||||
$url = common_local_url('showstream', array('nickname' => $user->nickname));
|
||||
} else {
|
||||
$url = common_local_url('public');
|
||||
}
|
||||
|
||||
$action->elementStart('a', array('class' => 'url home bookmark',
|
||||
'href' => common_local_url('public')));
|
||||
'href' => $url));
|
||||
|
||||
if (common_config('site', 'mobilelogo') ||
|
||||
file_exists(Theme::file('logo.png')) ||
|
||||
file_exists(Theme::file('mobilelogo.png'))) {
|
||||
|
Loading…
Reference in New Issue
Block a user