Fix PHP 5.5 compat

Might be better to opt for a getLayout method?
This commit is contained in:
Toby Zerner 2015-08-13 10:41:08 +09:30
parent b7dd8246e8
commit 9a81153fc4

View File

@ -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
*/