fixed issue with the Js compiler being unable to use the system tmp directory, using the one in storage is much safer across different operating systems

This commit is contained in:
Daniël Klabbers 2019-06-12 16:46:53 +02:00
parent d2674fb309
commit 54660ebd63

View File

@ -58,7 +58,7 @@ class JsCompiler extends RevisionCompiler
$this->assetsDir->put($file, implode("\n", $output));
$mapTemp = tempnam(sys_get_temp_dir(), $mapFile);
$mapTemp = tempnam(storage_path('tmp'), $mapFile);
$map->save($mapTemp);
$this->assetsDir->put($mapFile, file_get_contents($mapTemp));
@unlink($mapTemp);