mirror of
https://github.com/flarum/framework.git
synced 2025-02-06 14:51:01 +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
c65b3e5cec
commit
23f2082f07
|
@ -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