FIX: fix template path name for contact form
This commit is contained in:
@@ -61,9 +61,7 @@ class ContactFormServiceProvider extends ServiceProvider
|
||||
|
||||
$sourcePath = __DIR__ . '/../Resources/views';
|
||||
|
||||
$this->publishes([
|
||||
$sourcePath => $viewPath
|
||||
]);
|
||||
$this->publishes([$sourcePath => $viewPath]);
|
||||
|
||||
$this->loadViewsFrom(array_merge(array_map(function ($path) {
|
||||
return $path . '/modules/contactform';
|
||||
@@ -80,7 +78,7 @@ class ContactFormServiceProvider extends ServiceProvider
|
||||
$registrator->setModuleId(call_user_func([config('contactform.handler'), 'getModuleId']));
|
||||
|
||||
// register path with current template name
|
||||
$registrator->register(config('app.theme'), 'contactform::admin.templatePath');
|
||||
$registrator->register(config('app.theme'), 'contactform::admin/adminMenu.templatePath');
|
||||
} catch (InvalidArgumentException $e) {
|
||||
// ignore this exception
|
||||
}
|
||||
|
||||
@@ -3,5 +3,6 @@ return [
|
||||
'contactForm' => 'Contact form',
|
||||
'new' => 'New',
|
||||
'overview' => 'All contact forms',
|
||||
'sentMessages' => 'Messages'
|
||||
'sentMessages' => 'Messages',
|
||||
'templatePath' => 'Contact form'
|
||||
];
|
||||
Reference in New Issue
Block a user