]> _ Git - cubist_cms-back.git/commitdiff
#2843
authorVincent Vanwaelscappel <vincent@cubedesigners.com>
Wed, 26 Jun 2019 14:08:11 +0000 (16:08 +0200)
committerVincent Vanwaelscappel <vincent@cubedesigners.com>
Wed, 26 Jun 2019 14:08:11 +0000 (16:08 +0200)
src/app/helpers.php
src/resources/views/fields/bunch_multiple.blade.php

index e239dac17bf3f39e27c542819a9ded2b2bcc95b2..256dd1989fe0f02ac855902ed126c17b7a92b62d 100644 (file)
@@ -15,6 +15,10 @@ if (!function_exists('vendor_asset')) {
         }
 
         if (!file_exists($dest) || filemtime($local) > filemtime($dest) || filesize($local) != filesize($dest)) {
+            $dir = dirname($dest);
+            if (!file_exists($dir)) {
+                mkdir($dir, 0777, true);
+            }
             copy($local, $dest);
         }
 
index 32eec18993d590f9602cba412ee0f157ee9e8392..58bbc60d2a5c0f673fd0399060258b8993e4521e 100644 (file)
@@ -46,12 +46,12 @@ $unique = 'bunchmultiple_' . rand(1, 100000);
 
     {{-- FIELD CSS - will be loaded in the after_styles section --}}
     @push('crud_fields_styles')
-        <link rel="stylesheet" type="text/css" href="{{ vendor_asset('vendor/cubist/backpack/bunchmultiple/bunchmultiple.css') }}">
+        <link rel="stylesheet" type="text/css" href="{{ vendor_asset('vendor/cubist/cms-back/bunchmultiple/bunchmultiple.css') }}">
     @endpush
 
     {{-- FIELD JS - will be loaded in the after_scripts section --}}
     @push('crud_fields_scripts')
-        <script type="text/javascript" src="{{ vendor_asset('vendor/cubist/backpack/bunchmultiple/bunchmultiple.js') }}"></script>
+        <script type="text/javascript" src="{{ vendor_asset('vendor/cubist/cms-back/bunchmultiple/bunchmultiple.js') }}"></script>
     @endpush
 
 @endif