update Configuration.php

This commit is contained in:
aina-esokia
2018-09-03 15:03:47 +04:00
parent 354c918a90
commit 288cdbd3e2

View File

@@ -234,12 +234,11 @@ class Configuration implements ConfigurationInterface
private function dumpFile($file, $content, $mod = 0600) private function dumpFile($file, $content, $mod = 0600)
{ {
@chmod($file, $mod & ~umask()); if(false === @file_put_contents($file, $content)){
if (false === @file_put_contents($file, $content)) {
throw new RuntimeException(sprintf('Unable to write %s', $file)); throw new RuntimeException(sprintf('Unable to write %s', $file));
}else{
@chmod($file, $mod & ~umask());
} }
} }
private function eraseFile($file) private function eraseFile($file)