mirror of
https://github.com/friendica/friendica
synced 2024-11-18 21:43:40 +00:00
remove not working code for checking writable files ("is_writable()" uses a different user)
This commit is contained in:
parent
1b2ff54f66
commit
b68d0516ea
1 changed files with 1 additions and 1 deletions
|
@ -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));
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue