From 01d36785b052f722c982700bcfe29e7ea26d1321 Mon Sep 17 00:00:00 2001 From: Mike Macgirvin Date: Mon, 27 Sep 2010 19:48:45 -0700 Subject: fixed photo comments, msg typo, and changed cursor when hovering over "special friends" where SSO is allowed --- mod/message.php | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) (limited to 'mod/message.php') diff --git a/mod/message.php b/mod/message.php index b544b552a..114f558db 100644 --- a/mod/message.php +++ b/mod/message.php @@ -211,6 +211,7 @@ function message_content(&$a) { '$id' => $rr['id'], '$from_name' =>$rr['from-name'], '$from_url' => $a->get_baseurl() . '/redir/' . $rr['contact-id'], + '$sparkle' => ' sparkle', '$from_photo' => $rr['from-photo'], '$subject' => (($rr['mailseen']) ? $rr['title'] : '' . $rr['title'] . ''), '$delete' => t('Delete conversation'), @@ -261,11 +262,19 @@ function message_content(&$a) { $tpl = load_view_file('view/mail_conv.tpl'); foreach($messages as $message) { + if($message['from-url'] == $myprofile) { + $from_url = $myprofile; + $sparkle = ''; + } + else { + $from_url = $a->get_baseurl() . '/redir/' . $message['contact-id']; + $sparkle = ' sparkle'; + } $o .= replace_macros($tpl, array( '$id' => $message['id'], '$from_name' =>$message['from-name'], - '$from_url' => (($message['from-url'] == $myprofile) - ? $myprofile : $a->get_baseurl() . '/redir/' . $message['contact-id']), + '$from_url' => $from_url, + '$sparkle' => $sparkle, '$from_photo' => $message['from-photo'], '$subject' => $message['title'], '$body' => bbcode($message['body']), -- cgit v1.2.3