mirror of
https://github.com/flarum/core.git
synced 2025-07-18 15:21:16 +02:00
fixed tests on master, missing views directory and suppressing notices from tempnam when storing files in tmp
This commit is contained in:
@@ -58,7 +58,7 @@ class JsCompiler extends RevisionCompiler
|
|||||||
|
|
||||||
$this->assetsDir->put($file, implode("\n", $output));
|
$this->assetsDir->put($file, implode("\n", $output));
|
||||||
|
|
||||||
$mapTemp = tempnam(storage_path('tmp'), $mapFile);
|
$mapTemp = @tempnam(storage_path('tmp'), $mapFile);
|
||||||
$map->save($mapTemp);
|
$map->save($mapTemp);
|
||||||
$this->assetsDir->put($mapFile, file_get_contents($mapTemp));
|
$this->assetsDir->put($mapFile, file_get_contents($mapTemp));
|
||||||
@unlink($mapTemp);
|
@unlink($mapTemp);
|
||||||
|
Reference in New Issue
Block a user