1
0
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:
Franz Liedke
2017-02-14 22:56:17 +01:00
parent 30076547e5
commit bbcc33b5b5
3 changed files with 14 additions and 83 deletions

View File

@@ -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;
}