<small class="containerContentType">{lang}wcf.user.recentActivity.{@$event->getObjectTypeName()}{/lang}</small>
</div>
- <div class="containerContent htmlContent">{@$event->getDescription()}</div>
+ <div class="containerContent{if !$event->isRawHtml()} htmlContent{/if}">{@$event->getDescription()}</div>
</div>
</div>
</li>
*/
protected $userProfile = null;
+ /**
+ * true if event description contains raw html
+ * @var boolean
+ */
+ protected $isRawHtml = false;
+
/**
* Marks this event as accessible for current user.
*/
* Sets event text.
*
* @param string $description
+ * @param boolean $isRawHtml
*/
- public function setDescription($description) {
+ public function setDescription($description, $isRawHtml = false) {
$this->description = $description;
+ $this->isRawHtml = $isRawHtml;
}
/**
public function getObjectTypeName() {
return UserActivityEventHandler::getInstance()->getObjectType($this->objectTypeID)->objectType;
}
+
+ /**
+ * Returns true if event description contains raw html.
+ *
+ * @return boolean
+ * @since 3.1
+ */
+ public function isRawHtml() {
+ return $this->isRawHtml;
+ }
}