Fixed 'about me'
authorAlexander Ebert <ebert@woltlab.com>
Fri, 19 Aug 2016 15:01:17 +0000 (17:01 +0200)
committerAlexander Ebert <ebert@woltlab.com>
Fri, 19 Aug 2016 15:01:26 +0000 (17:01 +0200)
wcfsetup/install/files/lib/system/option/user/MessageUserOptionOutput.class.php

index 590c6e07a3f5479b3436c6dbff9ae1cc3379ff43..d15b3841c9f22f9f6dd3d3b8e2712db3057b0d63 100644 (file)
@@ -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');
        }