mirror of
https://github.com/flarum/framework.git
synced 2024-11-27 19:13:37 +08:00
fixes a notice due to the forum variable not being defined before compacting
This commit is contained in:
parent
3468bdf511
commit
9eca9192ca
|
@ -58,7 +58,7 @@ class Index
|
|||
|
||||
$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;
|
||||
|
|
Loading…
Reference in New Issue
Block a user