mirror of
https://github.com/flarum/framework.git
synced 2024-12-12 06:03:39 +08:00
Fix PHP 5.5 compat
Might be better to opt for a getLayout method?
This commit is contained in:
parent
b7dd8246e8
commit
9a81153fc4
|
@ -1,6 +1,9 @@
|
|||
<?php namespace Flarum\Forum\Actions;
|
||||
|
||||
use Flarum\Support\ClientAction as BaseClientAction;
|
||||
use Flarum\Api\Client;
|
||||
use Flarum\Core\Settings\SettingsRepository;
|
||||
use Flarum\Locale\LocaleManager;
|
||||
|
||||
class ClientAction extends BaseClientAction
|
||||
{
|
||||
|
@ -9,11 +12,6 @@ class ClientAction extends BaseClientAction
|
|||
*/
|
||||
protected $clientName = 'forum';
|
||||
|
||||
/**
|
||||
* {@inheritdoc}
|
||||
*/
|
||||
protected $layout = __DIR__.'/../../../views/forum.blade.php';
|
||||
|
||||
/**
|
||||
* {@inheritdoc}
|
||||
*/
|
||||
|
@ -128,6 +126,16 @@ class ClientAction extends BaseClientAction
|
|||
'core.write_a_reply'
|
||||
];
|
||||
|
||||
/**
|
||||
* {@inheritdoc}
|
||||
*/
|
||||
public function __construct(Client $apiClient, LocaleManager $locales, SettingsRepository $settings)
|
||||
{
|
||||
parent::__construct($apiClient, $locales, $settings);
|
||||
|
||||
$this->layout = __DIR__.'/../../../views/forum.blade.php';
|
||||
}
|
||||
|
||||
/**
|
||||
* @inheritdoc
|
||||
*/
|
||||
|
|
Loading…
Reference in New Issue
Block a user