summaryrefslogtreecommitdiff
path: root/actions
diff options
context:
space:
mode:
authorEvan Prodromou <evan@controlyourself.ca>2009-03-30 09:58:28 -0400
committerEvan Prodromou <evan@controlyourself.ca>2009-03-30 09:58:28 -0400
commit73fbf6580045939bfe9276820476be01d72c0687 (patch)
tree2586a0ed57ed6547300c2dfd811916f21d1fe364 /actions
parent86c7a3c44ddc93ec40bc0512c814e656681bc832 (diff)
full name in title and h1 of the personal profile
Diffstat (limited to 'actions')
-rw-r--r--actions/showstream.php20
1 files changed, 8 insertions, 12 deletions
diff --git a/actions/showstream.php b/actions/showstream.php
index b83f45d53..f5886f3d3 100644
--- a/actions/showstream.php
+++ b/actions/showstream.php
@@ -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;