mirror of
https://github.com/flarum/core.git
synced 2025-07-20 00:01:17 +02: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:
@@ -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);
|
||||
|
Reference in New Issue
Block a user