File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -99,7 +99,7 @@ public function write($content, array $metadata = null)
99
99
throw new \RuntimeException (sprintf ('Unable to write in the %s directory ' , $ dir ));
100
100
}
101
101
102
- $ tmpFile = tempnam (dirname ( $ this -> file ) , basename ($ this ->file ));
102
+ $ tmpFile = tempnam ($ dir , basename ($ this ->file ));
103
103
if (false !== @file_put_contents ($ tmpFile , $ content ) && @rename ($ tmpFile , $ this ->file )) {
104
104
@chmod ($ this ->file , 0666 & ~umask ());
105
105
} else {
@@ -108,7 +108,7 @@ public function write($content, array $metadata = null)
108
108
109
109
if (null !== $ metadata && true === $ this ->debug ) {
110
110
$ file = $ this ->file .'.meta ' ;
111
- $ tmpFile = tempnam (dirname ( $ file ) , basename ($ file ));
111
+ $ tmpFile = tempnam ($ dir , basename ($ file ));
112
112
if (false !== @file_put_contents ($ tmpFile , serialize ($ metadata )) && @rename ($ tmpFile , $ file )) {
113
113
@chmod ($ file , 0666 & ~umask ());
114
114
}
You can’t perform that action at this time.
0 commit comments