]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
fix link for mobile profile when in singleuser mode
authorEvan Prodromou <evan@status.net>
Sat, 17 Sep 2011 22:20:08 +0000 (18:20 -0400)
committerEvan Prodromou <evan@status.net>
Sat, 17 Sep 2011 22:20:08 +0000 (18:20 -0400)
plugins/MobileProfile/MobileProfilePlugin.php

index bc25b340e98d3b1b5c6240c5693f6d22a812d0d2..e6bc444ea489533172f7c5ad7a7d65225550050d 100644 (file)
@@ -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'))) {