SMall fixes
This commit is contained in:
+2
-1
@@ -477,7 +477,8 @@ function message_print_search_results($frm) {
|
||||
echo '</td>';
|
||||
echo '<td class="message_summary">'.message_get_fragment($message->message, $keywords);
|
||||
echo '<br /><div class="message_summary_link">';
|
||||
message_history_link($message->useridto, $message->useridfrom, true, $keywordstring, $datestring, $strcontext);
|
||||
message_history_link($message->useridto, $message->useridfrom, false,
|
||||
$keywordstring, $datestring, $strcontext);
|
||||
echo '</div>';
|
||||
echo '</td>';
|
||||
echo '<td class="message_date">'.userdate($message->timecreated, $dateformat).'</td>';
|
||||
|
||||
+2
-3
@@ -76,11 +76,10 @@
|
||||
echo '<br /><font size="1">'; /// Print login status of this user
|
||||
if ($user->lastaccess) {
|
||||
if (time() - $user->lastaccess > $CFG->message_offline_time) {
|
||||
echo get_string('offline', 'message').":";
|
||||
echo get_string('offline', 'message').': '.format_time(time() - $user->lastaccess);
|
||||
} else {
|
||||
echo get_string("lastaccess").":";
|
||||
echo get_string('lastaccess').': '.get_string('ago', 'message', format_time(time() - $user->lastaccess));
|
||||
}
|
||||
echo get_string('ago', 'message', format_time(time() - $user->lastaccess));
|
||||
} else {
|
||||
echo get_string("lastaccess").":". get_string("never");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user