* @return string
*/
public function getFormattedContent() {
- // assign embedded objects
- MessageEmbeddedObjectManager::getInstance()->setActiveMessage('com.woltlab.wcf.article.content', $this->articleContentID);
-
$processor = new HtmlOutputProcessor();
$processor->process($this->content, 'com.woltlab.wcf.article.content', $this->articleContentID);
if ($boxContent !== null) {
if ($this->boxType == 'text') {
- // assign embedded objects
- MessageEmbeddedObjectManager::getInstance()->setActiveMessage('com.woltlab.wcf.box.content', $boxContent->boxContentID);
-
$processor = new HtmlOutputProcessor();
$processor->process($boxContent->content, 'com.woltlab.wcf.box.content', $boxContent->boxContentID);
* @return string
*/
public function getFormattedContent() {
- // assign embedded objects
- MessageEmbeddedObjectManager::getInstance()->setActiveMessage('com.woltlab.wcf.page.content', $this->pageContentID);
MessageEmbeddedObjectManager::getInstance()->loadObjects('com.woltlab.wcf.page.content', [$this->pageContentID]);
$processor = new HtmlOutputProcessor();
namespace wcf\system\html\output;
use wcf\system\html\output\node\HtmlOutputNodeProcessor;
use wcf\system\html\AbstractHtmlProcessor;
+use wcf\system\message\embedded\object\MessageEmbeddedObjectManager;
/**
* Processes stored HTML for final display.
}
parent::setContext($objectType, $objectID);
+
+ MessageEmbeddedObjectManager::getInstance()->setActiveMessage($objectType, $objectID);
}
/**