]> _ Git - fluidbook_tools.git/commitdiff
wait #4809 @0.5
authorVincent Vanwaelscappel <vincent@cubedesigners.com>
Thu, 21 Oct 2021 10:25:16 +0000 (12:25 +0200)
committerVincent Vanwaelscappel <vincent@cubedesigners.com>
Thu, 21 Oct 2021 10:25:16 +0000 (12:25 +0200)
composer.json
src/Compiler/Compiler.php
src/Compiler/Styles.php

index d407f219213bb9e2454d797af9a4a99f26832132..69d25df28ba72b6bfafbd8c056764b8fcce38c76 100644 (file)
@@ -32,8 +32,8 @@
         "ext-gd": "*",
         "laravel/framework": "~5.8|^6.0|^7.0|^8.0",
         "cubist/util": "dev-master",
+        "cubist/pdf": "dev-master",
         "barryvdh/laravel-debugbar": "^3.6",
-        "spatie/laravel-medialibrary": "^9.0",
-        "cubist/pdf": "dev-master"
+        "spatie/laravel-medialibrary": "^9.0"
     }
 }
index 299e246a4b8a948fcfd1f0f6d6689547936a507f..b61eede8ba261cca78fe1f107689e97bae449f05 100644 (file)
@@ -165,7 +165,7 @@ class Compiler implements ShouldQueue, ShouldBeUnique
         start_measure('Compile fluidbook');
 
         if ($this->wdir === '') {
-            $this->wdir = resource_path('fluidbook/working/');
+            $this->wdir = storage_path('fluidbook/working/');
             Files::mkdir($this->wdir);
         }
 
index 7219829074c9130a5a96503230abe6d606260197..8dc8c1a68832d378efded3b8f0a193207ea3caf4 100644 (file)
@@ -361,20 +361,24 @@ trait Styles
     {
         $path = trim($path);
         $path = trim($path, '/');
+
         if (!$path) {
             return false;
         }
-        $p = $this->stub . '/_theme/' . $path;
+
+        $p = $this->stub . '_theme/' . $path;
         if (file_exists($p)) {
             $this->vdir->copy($p, 'data/' . $path);
             return $p;
         }
+
         $po = str_replace('.svg', '.o.svg', $p);
         if (file_exists($po)) {
             copy($po, $p);
             $this->vdir->copy($p, 'data/' . $path);
             return $p;
         }
+        throw new \Exception("Missing theme file : " . $path . ' (' . $p . ')');
         return false;
     }