Bugfix: Messages work now again

This commit is contained in:
Michael Vogel 2016-04-17 22:07:01 +02:00 committed by Roland Haeder
parent dd71a05ab3
commit 1021111241
No known key found for this signature in database
GPG key ID: B72F8185C6C7BD78

View file

@ -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'];
}