mirror of
https://github.com/friendica/friendica
synced 2025-04-30 13:04:26 +02:00
The quote functionality is simplified
This commit is contained in:
parent
b5ad8c3e15
commit
0d3aa681b4
10 changed files with 170 additions and 257 deletions
|
@ -161,7 +161,7 @@ class Avatar
|
|||
$dirpath .= $part . '/';
|
||||
|
||||
if (!file_exists($dirpath)) {
|
||||
if (!@mkdir($dirpath, $dir_perm)) {
|
||||
if (!@mkdir($dirpath, $dir_perm) && !file_exists($dirpath)) {
|
||||
Logger::warning('Directory could not be created', ['directory' => $dirpath]);
|
||||
}
|
||||
} elseif ((($old_perm = fileperms($dirpath) & 0777) != $dir_perm) && !chmod($dirpath, $dir_perm)) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue