From 1021111241e9caf33427b81b783e9c39bd78f969 Mon Sep 17 00:00:00 2001 From: Michael Vogel Date: Sun, 17 Apr 2016 22:07:01 +0200 Subject: [PATCH] Bugfix: Messages work now again --- mod/message.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/mod/message.php b/mod/message.php index b6981cc88c..433da08a88 100644 --- a/mod/message.php +++ b/mod/message.php @@ -2,6 +2,7 @@ require_once('include/acl_selectors.php'); require_once('include/message.php'); +require_once('include/Smilies.php'); function message_init(&$a) { @@ -462,13 +463,13 @@ function message_content(&$a) { if($a->theme['template_engine'] === 'internal') { $from_name_e = template_escape($message['from-name']); $subject_e = template_escape($message['title']); - $body_e = template_escape(smilies(bbcode($message['body']))); + $body_e = template_escape(Smilies::replace(bbcode($message['body']))); $to_name_e = template_escape($message['name']); } else { $from_name_e = $message['from-name']; $subject_e = $message['title']; - $body_e = smilies(bbcode($message['body'])); + $body_e = Smilies::replace(bbcode($message['body'])); $to_name_e = $message['name']; } -- 2.39.5