diff options
Diffstat (limited to 'views/default/page_elements')
-rw-r--r-- | views/default/page_elements/title.php | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/views/default/page_elements/title.php b/views/default/page_elements/title.php index c4248d713..611bc0aa3 100644 --- a/views/default/page_elements/title.php +++ b/views/default/page_elements/title.php @@ -15,15 +15,9 @@ $page_owner = page_owner();
$page_owner_user = get_user($page_owner);
- $user_name = $page_owner_user->username;
if($page_owner) {
- //if the user is looking at their own stuff, don't display the name
- if($_SESSION['user']->getGUID() == $page_owner_user->guid){
- $info = "<h2>Your " . $vars['title'] . "</h2>";
- }else{
- $info = "<h2>" . $user_name . "'s " . $vars['title'] . "</h2>";
- }
+ $info = "<h2>" . $vars['title'] . "</h2>";
$icon = elgg_view("profile/icon",array('entity' => $page_owner_user, 'size' => 'small'));
echo elgg_view_listing($icon, $info);
} else {
|