Allow event listeners to access article data during rebuild
authorAlexander Ebert <ebert@woltlab.com>
Wed, 7 Jun 2017 14:20:29 +0000 (16:20 +0200)
committerAlexander Ebert <ebert@woltlab.com>
Wed, 7 Jun 2017 14:20:29 +0000 (16:20 +0200)
See WoltLab/com.woltlab.wbb#235

wcfsetup/install/files/lib/system/worker/ArticleRebuildDataWorker.class.php

index 1ff5749acf13d96de63611932444deea87d4d3da..635d04b42c2e011e5faf4c6b12f0af2ce22c0a1d 100644 (file)
@@ -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);
        }
        
        /**