From 0a84322e4a2039cd4ad66906e4f9fc84624ca1f4 Mon Sep 17 00:00:00 2001 From: Alexander Ebert Date: Fri, 19 Aug 2016 17:01:17 +0200 Subject: [PATCH] Fixed 'about me' --- .../system/option/user/MessageUserOptionOutput.class.php | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/wcfsetup/install/files/lib/system/option/user/MessageUserOptionOutput.class.php b/wcfsetup/install/files/lib/system/option/user/MessageUserOptionOutput.class.php index 590c6e07a3..d15b3841c9 100644 --- a/wcfsetup/install/files/lib/system/option/user/MessageUserOptionOutput.class.php +++ b/wcfsetup/install/files/lib/system/option/user/MessageUserOptionOutput.class.php @@ -2,7 +2,7 @@ namespace wcf\system\option\user; use wcf\data\user\option\UserOption; use wcf\data\user\User; -use wcf\system\bbcode\MessageParser; +use wcf\system\html\output\HtmlOutputProcessor; use wcf\system\WCF; use wcf\util\StringUtil; @@ -24,11 +24,12 @@ class MessageUserOptionOutput implements IUserOptionOutput { return ''; } - MessageParser::getInstance()->setOutputType('text/html'); + $htmlOutputProcessor = new HtmlOutputProcessor(); + $htmlOutputProcessor->process($value, 'com.woltlab.wcf.user.aboutMe', $user->userID); WCF::getTPL()->assign([ 'option' => $option, - 'value' => MessageParser::getInstance()->parse($value) + 'value' => $htmlOutputProcessor->getHtml() ]); return WCF::getTPL()->fetch('messageUserOptionOutput'); } -- 2.20.1