From: Peter Frühwirt Date: Thu, 29 Dec 2016 16:59:17 +0000 (+0100) Subject: Added beforeProcess event to HtmlOutputNodeProcessor (#2155) X-Git-Tag: 3.0.0_RC_3~1 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=e1c42d49982d620b4e416200a4af952591035351;p=GitHub%2FWoltLab%2FWCF.git Added beforeProcess event to HtmlOutputNodeProcessor (#2155) * Added preProcess event to HtmlOutputNodeProcessor Added possibility for plugins to change html output on every request (like it is done with keywords highlighting) * Changed event name in HtmlOutputNodeProcessor --- diff --git a/wcfsetup/install/files/lib/system/html/output/node/HtmlOutputNodeProcessor.class.php b/wcfsetup/install/files/lib/system/html/output/node/HtmlOutputNodeProcessor.class.php index e8786dad99..35c35e06fe 100644 --- a/wcfsetup/install/files/lib/system/html/output/node/HtmlOutputNodeProcessor.class.php +++ b/wcfsetup/install/files/lib/system/html/output/node/HtmlOutputNodeProcessor.class.php @@ -2,6 +2,7 @@ namespace wcf\system\html\output\node; use wcf\system\bbcode\HtmlBBCodeParser; use wcf\system\bbcode\KeywordHighlighter; +use wcf\system\event\EventHandler; use wcf\system\html\node\AbstractHtmlNodeProcessor; use wcf\system\html\node\IHtmlNode; use wcf\util\DOMUtil; @@ -59,6 +60,9 @@ class HtmlOutputNodeProcessor extends AbstractHtmlNodeProcessor { * @inheritDoc */ public function process() { + // fire event action + EventHandler::getInstance()->fireAction($this, 'beforeProcess'); + // highlight keywords $this->highlightKeywords();