From 5c0e8d2a2f3e55b7315511e806f40b6dea69f9ea Mon Sep 17 00:00:00 2001 From: Evan Prodromou Date: Sat, 17 Sep 2011 18:20:08 -0400 Subject: [PATCH] fix link for mobile profile when in singleuser mode --- plugins/MobileProfile/MobileProfilePlugin.php | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/plugins/MobileProfile/MobileProfilePlugin.php b/plugins/MobileProfile/MobileProfilePlugin.php index bc25b340e9..e6bc444ea4 100644 --- a/plugins/MobileProfile/MobileProfilePlugin.php +++ b/plugins/MobileProfile/MobileProfilePlugin.php @@ -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'))) { -- 2.39.5