diff --git a/src/Controllers/ArchivesController.php b/src/Controllers/ArchivesController.php index 84a4c346..6925b8f8 100644 --- a/src/Controllers/ArchivesController.php +++ b/src/Controllers/ArchivesController.php @@ -179,7 +179,7 @@ protected function setCurrentPage( }); } - Event::fire('xe.plugin.board.archive', [$query, $slug->board]); + Event::dispatch('xe.plugin.board.archive', [$query, $slug->board]); $count = $query->count() ? : 1; $page = (int)($count / $config->get('perPage')); diff --git a/src/Services/BoardService.php b/src/Services/BoardService.php index 2e2af41f..06aaa538 100644 --- a/src/Services/BoardService.php +++ b/src/Services/BoardService.php @@ -117,7 +117,7 @@ function ($query) use ($userId) { ]); } - Event::fire('xe.plugin.board.notice', [$query, $request]); + Event::dispatch('xe.plugin.board.notice', [$query, $request]); return $query->orderBy('head', 'desc')->get(); } @@ -215,7 +215,7 @@ function($query) { $this->handler->makeWhere($query, $request, $config); $this->handler->makeOrder($query, $request, $config); - Event::fire('xe.plugin.board.articles', [$query, $request]); + Event::dispatch('xe.plugin.board.articles', [$query, $request]); if ($id !== null) { $board = Board::division($boardInstanceId)->newQuery()->find($id); @@ -264,7 +264,7 @@ function ($query) { } ); - Event::fire('xe.plugin.board.moreItems', [$query, $config]); + Event::dispatch('xe.plugin.board.moreItems', [$query, $config]); return $query->take(8)->orderBy('head', 'desc')->get(); }