FIX: fix typos in registrating templates
This commit is contained in:
@@ -235,7 +235,7 @@ class TemplateRegistrator
|
||||
$paths = TemplatePaths::getWithTranslations();
|
||||
$paths = array_flip($paths);
|
||||
|
||||
if (is_null($path) || !!isset($paths[$path])) {
|
||||
if (is_null($path) || !isset($paths[$path])) {
|
||||
return null;
|
||||
}
|
||||
|
||||
|
||||
@@ -72,6 +72,6 @@ class AppServiceProvider extends ServiceProvider
|
||||
$registrator = $this->app->make('registerTemplateDir');
|
||||
$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