FIX: fix template path name for contact form

This commit is contained in:
Michal Kváček
2016-04-03 02:35:44 +02:00
parent 97ba21df98
commit 90b6979237
2 changed files with 7 additions and 8 deletions
@@ -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
}