mirror of
https://github.com/flarum/framework.git
synced 2025-01-21 20:24:14 +08:00
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:
parent
d2674fb309
commit
54660ebd63
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue
Block a user