mirror of
https://github.com/moodle/moodle.git
synced 2025-01-31 12:45:04 +01:00
Different styles for me and the other person
This commit is contained in:
parent
106558b314
commit
da6d982dfd
@ -57,7 +57,7 @@
|
||||
$printmessage = format_text($message->message, $message->format, $options, 0);
|
||||
$printmessage = str_replace("\r", ' ', $printmessage);
|
||||
$printmessage = str_replace("\n", ' ', $printmessage);
|
||||
$printmessage = '<div class="message"><span class="author">'.s($userfullname).'</span> '.
|
||||
$printmessage = '<div class="message other"><span class="author">'.s($userfullname).'</span> '.
|
||||
'<span class="time">['.$time.']</span>: '.
|
||||
'<span class="content">'.$printmessage.'</span></div>';
|
||||
$printmessage = addslashes($printmessage); // So Javascript can write it
|
||||
|
@ -60,7 +60,7 @@
|
||||
$message = str_replace("\r", ' ', $message);
|
||||
$message = str_replace("\n", ' ', $message);
|
||||
$time = userdate(time(), get_string('strftimedaytime'));
|
||||
$message = '<div class="message"><span class="author">'.fullname($USER).'</span> '.
|
||||
$message = '<div class="message me"><span class="author">'.fullname($USER).'</span> '.
|
||||
'<span class="time">['.$time.']</span>: '.
|
||||
'<span class="content">'.$message.'</span></div>';
|
||||
$message = addslashes($message); // So Javascript can write it
|
||||
|
Loading…
x
Reference in New Issue
Block a user