]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
full name in title and h1 of the personal profile
authorEvan Prodromou <evan@controlyourself.ca>
Mon, 30 Mar 2009 13:58:28 +0000 (09:58 -0400)
committerEvan Prodromou <evan@controlyourself.ca>
Mon, 30 Mar 2009 13:58:49 +0000 (09:58 -0400)
actions/showstream.php

index 65482167e10d5eda4ce8b40803bff07f845d9156..9b65362938c1f0b1877041edf8b4245f40f84d59 100644 (file)
@@ -67,11 +67,17 @@ class ShowstreamAction extends Action
 
     function title()
     {
+        if (!empty($this->profile->fullname)) {
+            $base = $this->profile->fullname . ' (' . $this->user->nickname . ') ';
+        } else {
+            $base = $this->user->nickname;
+        }
+
         if ($this->page == 1) {
-            return $this->user->nickname;
+            return $base;
         } else {
             return sprintf(_("%s, page %d"),
-                           $this->user->nickname,
+                           $base,
                            $this->page);
         }
     }
@@ -140,16 +146,6 @@ class ShowstreamAction extends Action
         $nav->show();
     }
 
-    function showPageTitle()
-    {
-        $user =& common_current_user();
-        if ($user && ($user->id == $this->profile->id)) {
-            $this->element('h1', NULL, _("Your profile"));
-        } else {
-            $this->element('h1', NULL, sprintf(_('%s\'s profile'), $this->profile->nickname));
-        }
-    }
-
     function showPageNoticeBlock()
     {
         return;