]> git.mxchange.org Git - friendica.git/commitdiff
remove not working code for checking writable files ("is_writable()" uses a different...
authornupplaPhil <admin@philipp.info>
Wed, 8 Jan 2020 01:05:30 +0000 (02:05 +0100)
committernupplaPhil <admin@philipp.info>
Fri, 10 Jan 2020 12:22:01 +0000 (13:22 +0100)
src/Model/Storage/Filesystem.php

index bfc474a5aa9a1b60729c335514e7bd636528264f..9c429cfb3cf7afb5d1206690b8b12f58706bda45 100644 (file)
@@ -125,7 +125,7 @@ class Filesystem extends AbstractStorage
 
                $this->createFoldersForFile($file);
 
-               if ((file_exists($file) && !is_writable($file)) || !file_put_contents($file, $data)) {
+               if (!file_put_contents($file, $data)) {
                        $this->logger->warning('Failed to write data.', ['file' => $file]);
                        throw new StorageException($this->l10n->t('Filesystem storage failed to save data to "%s". Check your write permissions', $file));
                }