mirror of
https://github.com/friendica/friendica
synced 2025-04-27 17:10:10 +00:00
commit
e34d38182c
88 changed files with 618 additions and 482 deletions
|
@ -127,7 +127,11 @@ class Photos extends \Friendica\Module\BaseProfile
|
|||
$visible = 0;
|
||||
}
|
||||
|
||||
$ret = ['src' => '', 'filename' => '', 'filesize' => 0, 'type' => ''];
|
||||
$ret = ['src' => '', 'filename' => '', 'filesize' => 0, 'type' => ''];
|
||||
$src = null;
|
||||
$filename = '';
|
||||
$filesize = 0;
|
||||
$type = '';
|
||||
|
||||
Hook::callAll('photo_post_file', $ret);
|
||||
|
||||
|
@ -167,7 +171,11 @@ class Photos extends \Friendica\Module\BaseProfile
|
|||
$this->systemMessages->addNotice($this->t('Server can\'t accept new file upload at this time, please contact your administrator'));
|
||||
break;
|
||||
}
|
||||
@unlink($src);
|
||||
|
||||
if ($src !== null) {
|
||||
@unlink($src);
|
||||
}
|
||||
|
||||
$foo = 0;
|
||||
Hook::callAll('photo_post_end', $foo);
|
||||
return;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue