mirror of
https://git.friendi.ca/friendica/friendica-addons.git
synced 2024-11-22 02:03:40 +00:00
Fix wrong intends in js_upload
This commit is contained in:
parent
dcf4b5695d
commit
e0815309d0
1 changed files with 21 additions and 21 deletions
|
@ -308,7 +308,7 @@ class qqFileUploader {
|
|||
*/
|
||||
function handleUpload(){
|
||||
|
||||
if (!$this->file){
|
||||
if (!$this->file) {
|
||||
return ['error' => L10n::t('No files were uploaded.')];
|
||||
}
|
||||
|
||||
|
@ -346,13 +346,13 @@ class qqFileUploader {
|
|||
|
||||
if ($this->file->save()){
|
||||
return [
|
||||
'success'=>true,
|
||||
'success' => true,
|
||||
'path' => $this->file->getPath(),
|
||||
'filename' => $filename . '.' . $ext
|
||||
];
|
||||
} else {
|
||||
return [
|
||||
'error'=> L10n::t('Upload was cancelled, or server error encountered'),
|
||||
'error' => L10n::t('Upload was cancelled, or server error encountered'),
|
||||
'path' => $this->file->getPath(),
|
||||
'filename' => $filename . '.' . $ext
|
||||
];
|
||||
|
|
Loading…
Reference in a new issue