diff options
author | cash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2010-08-21 23:58:35 +0000 |
---|---|---|
committer | cash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2010-08-21 23:58:35 +0000 |
commit | 8a73785aee3e51c26c65053a4de7c5d7f0ebb673 (patch) | |
tree | 41e7e607886b0498a0d8d4dc79df6aaa5094d385 /mod/messages/views/default | |
parent | b81f168b0bfc298c6eb1c0a2a857311f076c40bd (diff) | |
download | elgg-8a73785aee3e51c26c65053a4de7c5d7f0ebb673.tar.gz elgg-8a73785aee3e51c26c65053a4de7c5d7f0ebb673.tar.bz2 |
Merged r6586:6587 from 1.7 branch into trunk
git-svn-id: http://code.elgg.org/elgg/trunk@6842 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'mod/messages/views/default')
-rw-r--r-- | mod/messages/views/default/messages/messages.php | 2 | ||||
-rw-r--r-- | mod/messages/views/default/messages/view.php | 12 |
2 files changed, 7 insertions, 7 deletions
diff --git a/mod/messages/views/default/messages/messages.php b/mod/messages/views/default/messages/messages.php index 46747faa3..984655540 100644 --- a/mod/messages/views/default/messages/messages.php +++ b/mod/messages/views/default/messages/messages.php @@ -77,7 +77,7 @@ if (isloggedin()) ?> <div class="entity_listing_icon"><?php echo $message_icon ?></div> <div class="entity_listing_info"><p><?php echo $message_owner ?></p> - <p class="entity_subtext"><?php echo friendly_time($vars['entity']->time_created); ?></p> + <p class="entity_subtext"><?php echo elgg_view_friendly_time($vars['entity']->time_created); ?></p> </div> </div> diff --git a/mod/messages/views/default/messages/view.php b/mod/messages/views/default/messages/view.php index 2de060e33..3cbcec943 100644 --- a/mod/messages/views/default/messages/view.php +++ b/mod/messages/views/default/messages/view.php @@ -27,7 +27,7 @@ if (is_array($vars['entity']) && sizeof($vars['entity']) > 0) { foreach($vars['entity'] as $message) { if ($message->owner_guid == $vars['user']->guid || $message->toId == $vars['user']->guid) { - + //make sure to only display the messages that have not been 'deleted' (1 = deleted) if($message->hiddenFrom != 1){ // check to see if the message has been read, if so, set the correct container class @@ -40,7 +40,7 @@ if (is_array($vars['entity']) && sizeof($vars['entity']) > 0) { $from = get_entity($message->fromId); echo "<div class='entity_listing_icon'>".elgg_view("profile/icon",array('entity' => $from, 'size' => 'tiny'))."</div>"; // message block (message sender, message subject, delete checkbox) - echo "<div class='entity_listing_info'><div class='message_sender'>".$from->name."<p class='entity_subtext'>".friendly_time($message->time_created)."</p></div>"; + echo "<div class='entity_listing_info'><div class='message_sender'>".$from->name."<p class='entity_subtext'>".elgg_view_friendly_time($message->time_created)."</p></div>"; // display message subject echo "<div class='message_subject'>"; // display delete button @@ -50,10 +50,10 @@ if (is_array($vars['entity']) && sizeof($vars['entity']) > 0) { 'confirm' => elgg_echo('deleteconfirm'), )) . "</span>"; echo "<p class='entity_title'><input type='checkbox' name=\"message_id[]\" value=\"{$message->guid}\" />"; - echo "<a href=\"{$message->getURL()}\">" . $message->title . "</a></p>"; + echo "<a href=\"{$message->getURL()}\">" . $message->title . "</a></p>"; echo "</div></div></div>"; // close the message container }//end of hiddenFrom if statement - } // end of user check + } // end of user check $counter++; if ($counter == $limit) break; @@ -72,10 +72,10 @@ if (is_array($vars['entity']) && sizeof($vars['entity']) > 0) { //get the correct user entity $user = get_entity($message->toId); - echo "<div class='message sent clearfloat'>"; + echo "<div class='message sent clearfloat'>"; //get the icon for the user the message was sent to echo "<div class='entity_listing_icon'>".elgg_view("profile/icon",array('entity' => $user, 'size' => 'tiny'))."</div>"; - echo "<div class='entity_listing_info'><div class='message_sender'>".$_SESSION['user']->name."<p class='entity_subtext'>".friendly_time($message->time_created)."</p></div>"; + echo "<div class='entity_listing_info'><div class='message_sender'>".$_SESSION['user']->name."<p class='entity_subtext'>".elgg_view_friendly_time($message->time_created)."</p></div>"; // display message subject echo "<div class='message_subject'>"; //display the link to 'delete' |