summaryrefslogtreecommitdiff
path: root/actions/showstream.php
diff options
context:
space:
mode:
authorSarven Capadisli <csarven@controlyourself.ca>2009-03-30 15:15:40 +0000
committerSarven Capadisli <csarven@controlyourself.ca>2009-03-30 15:15:40 +0000
commit27b45eeb4882e6c8d5de65d913a148437e91b50c (patch)
treeb90fa9d4c2d8c75e33126f6a67f0f968255c1d8e /actions/showstream.php
parent8c073a34ce472fc8d0385659a222339a5ba4254a (diff)
parent559cf75edbbf60a0d9f8e4991333d85a79359a99 (diff)
Merge branch '0.7.x' into 0.8.x
Diffstat (limited to 'actions/showstream.php')
-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;