From: Alexander Ebert Date: Wed, 7 Jun 2017 14:20:29 +0000 (+0200) Subject: Allow event listeners to access article data during rebuild X-Git-Tag: 3.1.0_Alpha_1~416 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=f21d469eae411e81e29cc6e21119ed108ca83889;p=GitHub%2FWoltLab%2FWCF.git Allow event listeners to access article data during rebuild See WoltLab/com.woltlab.wbb#235 --- diff --git a/wcfsetup/install/files/lib/system/worker/ArticleRebuildDataWorker.class.php b/wcfsetup/install/files/lib/system/worker/ArticleRebuildDataWorker.class.php index 1ff5749acf..635d04b42c 100644 --- a/wcfsetup/install/files/lib/system/worker/ArticleRebuildDataWorker.class.php +++ b/wcfsetup/install/files/lib/system/worker/ArticleRebuildDataWorker.class.php @@ -6,6 +6,7 @@ use wcf\data\article\ArticleEditor; use wcf\data\article\ArticleList; use wcf\data\object\type\ObjectTypeCache; use wcf\system\database\util\PreparedStatementConditionBuilder; +use wcf\system\event\EventHandler; use wcf\system\html\input\HtmlInputProcessor; use wcf\system\message\embedded\object\MessageEmbeddedObjectManager; use wcf\system\search\SearchIndexManager; @@ -134,6 +135,12 @@ class ArticleRebuildDataWorker extends AbstractRebuildDataWorker { // update data $editor->update($data); } + + $parameters = [ + 'articleContentList' => $articleContentList, + 'objectList' => $this->objectList + ]; + EventHandler::getInstance()->fireAction($this, 'afterExecute', $parameters); } /**