FIX: fix typos in registrating templates
This commit is contained in:
@@ -235,7 +235,7 @@ class TemplateRegistrator
|
|||||||
$paths = TemplatePaths::getWithTranslations();
|
$paths = TemplatePaths::getWithTranslations();
|
||||||
$paths = array_flip($paths);
|
$paths = array_flip($paths);
|
||||||
|
|
||||||
if (is_null($path) || !!isset($paths[$path])) {
|
if (is_null($path) || !isset($paths[$path])) {
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -72,6 +72,6 @@ class AppServiceProvider extends ServiceProvider
|
|||||||
$registrator = $this->app->make('registerTemplateDir');
|
$registrator = $this->app->make('registerTemplateDir');
|
||||||
$registrator->setBaseDirectory('resources/views/visitor');
|
$registrator->setBaseDirectory('resources/views/visitor');
|
||||||
|
|
||||||
$registrator->register(config('app.theme'), trans('admin/templates.core'));
|
$registrator->register(config('app.theme'), 'admin/templates.core');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user