From db88079f269e748a32cf8f5ac0d003ef1ecaa70c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michal=20Kv=C3=A1=C4=8Dek?= Date: Tue, 4 Oct 2016 11:27:49 +0200 Subject: [PATCH] FIX: fix template loading for article list --- .../Blog/ArticleList/Providers/ArticleListServiceProvider.php | 3 --- modules/Blog/ArticleList/Resources/views/admin/.gitkeep | 0 scripts/update.sh | 2 +- 3 files changed, 1 insertion(+), 4 deletions(-) create mode 100644 modules/Blog/ArticleList/Resources/views/admin/.gitkeep diff --git a/modules/Blog/ArticleList/Providers/ArticleListServiceProvider.php b/modules/Blog/ArticleList/Providers/ArticleListServiceProvider.php index c6b38d7c..439e4afb 100644 --- a/modules/Blog/ArticleList/Providers/ArticleListServiceProvider.php +++ b/modules/Blog/ArticleList/Providers/ArticleListServiceProvider.php @@ -52,9 +52,6 @@ class ArticleListServiceProvider extends ServiceProvider { $viewPath = base_path('resources/views/modules/articlelist'); $sourcePath = __DIR__ . '/../Resources/views'; - if (!is_dir($sourcePath)) { - return; - } $this->publishes([$sourcePath => $viewPath]); diff --git a/modules/Blog/ArticleList/Resources/views/admin/.gitkeep b/modules/Blog/ArticleList/Resources/views/admin/.gitkeep new file mode 100644 index 00000000..e69de29b diff --git a/scripts/update.sh b/scripts/update.sh index bc08944c..213eb466 100644 --- a/scripts/update.sh +++ b/scripts/update.sh @@ -49,9 +49,9 @@ php artisan vendor:publish # this part need running as root sudo chmod 0777 bootstrap/cache -R sudo chmod 0777 storage -R -sudo chmod 0777 modules/* sudo chmod 0777 public/uploads -R sudo chmod 0777 resources/views/visitor -R sudo chmod 0777 resources/views/modules -R sudo chmod 0777 modules/*/module.json +sudo chmod 0777 modules/*/*/module.json sudo chmod +x scripts/*