summaryrefslogtreecommitdiffstats
path: root/app/class/mesg.class.php
diff options
context:
space:
mode:
Diffstat (limited to 'app/class/mesg.class.php')
-rw-r--r--app/class/mesg.class.php9
1 files changed, 7 insertions, 2 deletions
diff --git a/app/class/mesg.class.php b/app/class/mesg.class.php
index 365431c..2104519 100644
--- a/app/class/mesg.class.php
+++ b/app/class/mesg.class.php
@@ -221,11 +221,16 @@ class mesg extends obj
public function renderMesg() : string
{
if ($this->objtype == "log")
+ {
$mesg = sprintf($this->mesg, $this->getAuthor()->getDisplayName());
+ }
else
- $mesg = $this->mesg;
+ {
+ $mesg = nl2br(str_replace(" ", " ", $this->mesg));
+ $mesg = preg_replace('/^(\s*&gt;.*)$/m', '<span class="text-success">${1}</span>', $mesg);
+ }
- return nl2br(str_replace(" ", "&nbsp;", $mesg));
+ return $mesg;
}
/*