diff options
-rw-r--r-- | languages/en.php | 3 | ||||
-rw-r--r-- | mod/groups/views/default/forum/topicposts.php | 5 | ||||
-rw-r--r-- | mod/groups/views/default/object/groupforumtopic.php | 6 |
3 files changed, 8 insertions, 6 deletions
diff --git a/languages/en.php b/languages/en.php index 53b26ba7d..84c12819f 100644 --- a/languages/en.php +++ b/languages/en.php @@ -275,7 +275,8 @@ To remove a widget drag it back to the <b>Widget gallery</b>.", 'profile:mobile' => "Mobile phone",
'profile:website' => "Website",
- 'profile:banned' => 'This user account has been suspended.',
+ 'profile:banned' => 'This user account has been suspended.', + 'profile:deleteduser' => 'Deleted user',
'profile:river:update' => "%s updated their profile",
'profile:river:iconupdate' => "%s updated their profile icon",
diff --git a/mod/groups/views/default/forum/topicposts.php b/mod/groups/views/default/forum/topicposts.php index fbfb7264f..a9afd87ca 100644 --- a/mod/groups/views/default/forum/topicposts.php +++ b/mod/groups/views/default/forum/topicposts.php @@ -31,8 +31,9 @@ //display the user name
echo "<p><b>" . $post_owner->name . "</b><br />";
- } else {
- echo "<p>";
+ } else { + echo "<div class=\"post_icon\"><img src=\"" . elgg_view('icon/user/default/small') . "\" /></div>";
+ echo "<p><b>" . elgg_echo('profile:deleteduser') . "</b><br />";
}
//display the date of the comment
diff --git a/mod/groups/views/default/object/groupforumtopic.php b/mod/groups/views/default/object/groupforumtopic.php index 021d139ca..a6d214fcf 100644 --- a/mod/groups/views/default/object/groupforumtopic.php +++ b/mod/groups/views/default/object/groupforumtopic.php @@ -29,12 +29,12 @@ }
$u = get_user($last_user);
-
+
//select the correct output depending on where you are
if(get_context() == "search"){
$info = "<p class=\"latest_discussion_info\">" . sprintf(elgg_echo('group:created'), $forum_created, $counter) . "<br /><span class=\"timestamp\">";
- if ($last_time) $info.= sprintf(elgg_echo('groups:lastupdated'), friendly_time($last_time), " <a href=\"" . $u->getURL() . "\">" . $u->name . "</a>");
+ if (($last_time) && ($u)) $info.= sprintf(elgg_echo('groups:lastupdated'), friendly_time($last_time), " <a href=\"" . $u->getURL() . "\">" . $u->name . "</a>");
$info .= '</span></p>';
//get the group avatar
$icon = elgg_view("profile/icon",array('entity' => $group, 'size' => 'small'));
@@ -49,7 +49,7 @@ }else{
$info = "<span class=\"latest_discussion_info\"><span class=\"timestamp\">" . sprintf(elgg_echo('group:created'), $forum_created, $counter) . "</span>";
- if ($last_time) $info.= "<br /><span class='timestamp'>" . elgg_echo('groups:updated') . " " . friendly_time($last_time) . " by <a href=\"" . $u->getURL() . "\">" . $u->name . "</a></span>";
+ if (($last_time) && ($u)) $info.= "<br /><span class='timestamp'>" . elgg_echo('groups:updated') . " " . friendly_time($last_time) . " by <a href=\"" . $u->getURL() . "\">" . $u->name . "</a></span>";
if (groups_can_edit_discussion($vars['entity'], page_owner_entity()->owner_guid)) {
|