mirror of
https://github.com/flarum/framework.git
synced 2025-03-02 14:58:57 +08:00
Flarum\Frontend: Fix view paths after renaming namespace
This commit is contained in:
parent
ea484732ed
commit
a12686ac80
@ -86,7 +86,7 @@ abstract class AbstractFrontend
|
|||||||
*/
|
*/
|
||||||
protected function getLayout()
|
protected function getLayout()
|
||||||
{
|
{
|
||||||
return __DIR__.'/../../../views/'.$this->getName().'.blade.php';
|
return __DIR__.'/../../views/'.$this->getName().'.blade.php';
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -104,7 +104,7 @@ abstract class AbstractFrontend
|
|||||||
*/
|
*/
|
||||||
private function addDefaultAssets(FrontendView $view)
|
private function addDefaultAssets(FrontendView $view)
|
||||||
{
|
{
|
||||||
$root = __DIR__.'/../../..';
|
$root = __DIR__.'/../..';
|
||||||
$name = $this->getName();
|
$name = $this->getName();
|
||||||
|
|
||||||
$view->getJs()->addFile("$root/js/$name/dist/app.js");
|
$view->getJs()->addFile("$root/js/$name/dist/app.js");
|
||||||
|
@ -287,7 +287,7 @@ class FrontendView
|
|||||||
$this->view->share('forum', array_get($forum, 'data'));
|
$this->view->share('forum', array_get($forum, 'data'));
|
||||||
$this->view->share('debug', $this->app->inDebugMode());
|
$this->view->share('debug', $this->app->inDebugMode());
|
||||||
|
|
||||||
$view = $this->view->file(__DIR__.'/../../../views/app.blade.php');
|
$view = $this->view->file(__DIR__.'/../../views/app.blade.php');
|
||||||
|
|
||||||
$view->title = $this->buildTitle(array_get($forum, 'data.attributes.title'));
|
$view->title = $this->buildTitle(array_get($forum, 'data.attributes.title'));
|
||||||
$view->description = $this->description ?: array_get($forum, 'data.attributes.description');
|
$view->description = $this->description ?: array_get($forum, 'data.attributes.description');
|
||||||
@ -345,7 +345,7 @@ class FrontendView
|
|||||||
|
|
||||||
protected function buildContent()
|
protected function buildContent()
|
||||||
{
|
{
|
||||||
$view = $this->view->file(__DIR__.'/../../../views/content.blade.php');
|
$view = $this->view->file(__DIR__.'/../../views/content.blade.php');
|
||||||
|
|
||||||
$view->content = $this->content;
|
$view->content = $this->content;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user