From 90b6979237e66a7a5cc3afb122223315cbfafbf4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michal=20Kv=C3=A1=C4=8Dek?= Date: Sun, 3 Apr 2016 02:35:44 +0200 Subject: [PATCH] FIX: fix template path name for contact form --- .../ContactForm/Providers/ContactFormServiceProvider.php | 6 ++---- .../ContactForm/Resources/lang/en/admin/adminMenu.php | 9 +++++---- 2 files changed, 7 insertions(+), 8 deletions(-) diff --git a/modules/ContactForm/Providers/ContactFormServiceProvider.php b/modules/ContactForm/Providers/ContactFormServiceProvider.php index 1cc4cbc2..395675b3 100644 --- a/modules/ContactForm/Providers/ContactFormServiceProvider.php +++ b/modules/ContactForm/Providers/ContactFormServiceProvider.php @@ -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 } diff --git a/modules/ContactForm/Resources/lang/en/admin/adminMenu.php b/modules/ContactForm/Resources/lang/en/admin/adminMenu.php index 3f827bce..85833483 100644 --- a/modules/ContactForm/Resources/lang/en/admin/adminMenu.php +++ b/modules/ContactForm/Resources/lang/en/admin/adminMenu.php @@ -1,7 +1,8 @@ 'Contact form', - 'new' => 'New', - 'overview' => 'All contact forms', - 'sentMessages' => 'Messages' + 'contactForm' => 'Contact form', + 'new' => 'New', + 'overview' => 'All contact forms', + 'sentMessages' => 'Messages', + 'templatePath' => 'Contact form' ]; \ No newline at end of file