Skip to content

Commit

Permalink
fixes a notice due to the forum variable not being defined before com…
Browse files Browse the repository at this point in the history
…pacting
  • Loading branch information
luceos committed Dec 19, 2018
1 parent 3468bdf commit 9eca919
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Forum/Content/Index.php
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ public function __invoke(Document $document, Request $request)

$apiDocument = $this->getApiDocument($request->getAttribute('actor'), $params);

$document->content = $this->view->make('flarum.forum::frontend.content.index', compact('apiDocument', 'page', 'forum'));
$document->content = $this->view->make('flarum.forum::frontend.content.index', compact('apiDocument', 'page'));
$document->payload['apiDocument'] = $apiDocument;

return $document;
Expand Down

0 comments on commit 9eca919

Please sign in to comment.