"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"
}
}
start_measure('Compile fluidbook');
if ($this->wdir === '') {
- $this->wdir = resource_path('fluidbook/working/');
+ $this->wdir = storage_path('fluidbook/working/');
Files::mkdir($this->wdir);
}
{
$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;
}