From e1c42d49982d620b4e416200a4af952591035351 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Peter=20Fr=C3=BChwirt?= Date: Thu, 29 Dec 2016 17:59:17 +0100 Subject: [PATCH] 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 --- .../system/html/output/node/HtmlOutputNodeProcessor.class.php | 4 ++++ 1 file changed, 4 insertions(+) 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(); -- 2.20.1