mirror of
https://github.com/flarum/core.git
synced 2025-10-11 06:54:26 +02:00
Turn a few setters/getters into public attributes
There were no type hints etc. going on, and we would have needed the getters anyway. See https://github.com/flarum/core/pull/1105#issuecomment-279310998.
This commit is contained in:
@@ -85,9 +85,9 @@ class DiscussionController extends WebAppController
|
||||
}
|
||||
}
|
||||
|
||||
$view->setTitle($document->data->attributes->title);
|
||||
$view->setDocument($document);
|
||||
$view->setContent(app('view')->make('flarum.forum::discussion', compact('document', 'page', 'getResource', 'posts', 'url')));
|
||||
$view->title = $document->data->attributes->title;
|
||||
$view->document = $document;
|
||||
$view->content = app('view')->make('flarum.forum::discussion', compact('document', 'page', 'getResource', 'posts', 'url'));
|
||||
|
||||
return $view;
|
||||
}
|
||||
|
Reference in New Issue
Block a user