diff --git a/core/lib/Drupal/Core/Config/FileStorage.php b/core/lib/Drupal/Core/Config/FileStorage.php index f404480..655b116 100644 --- a/core/lib/Drupal/Core/Config/FileStorage.php +++ b/core/lib/Drupal/Core/Config/FileStorage.php @@ -136,8 +136,7 @@ public function write($name, array $data) { ))); } - $target = $this->getFilePath($name); - $status = @file_put_contents($target, $data); + $status = @file_put_contents($this->getFilePath($name), $data); if ($status === FALSE) { // Try to make sure the directory exists and try writing again. $this->ensureStorage(); @@ -146,9 +145,6 @@ public function write($name, array $data) { if ($status === FALSE) { throw new StorageException('Failed to write configuration file: ' . $this->getFilePath($name)); } - else { - drupal_chmod($target); - } return TRUE; }