[js_upload] Fixing missing extension index #827

Merged
nupplaphil merged 3 commits from issue/6338-php_notices into 2019.03-RC 2019-03-14 03:50:58 +01:00
Showing only changes of commit e0815309d0 - Show all commits

Fix wrong intends in js_upload

Philipp Holzer 2019-03-13 21:01:09 +01:00
No known key found for this signature in database
GPG key ID: 517BE60E2CE5C8A5

View file

@ -308,7 +308,7 @@ class qqFileUploader {
*/ */
function handleUpload(){ function handleUpload(){
if (!$this->file){ if (!$this->file) {
return ['error' => L10n::t('No files were uploaded.')]; return ['error' => L10n::t('No files were uploaded.')];
} }
@ -346,13 +346,13 @@ class qqFileUploader {
if ($this->file->save()){ if ($this->file->save()){
return [ return [
'success'=>true, 'success' => true,
'path' => $this->file->getPath(), 'path' => $this->file->getPath(),
'filename' => $filename . '.' . $ext 'filename' => $filename . '.' . $ext
]; ];
} else { } else {
return [ 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(), 'path' => $this->file->getPath(),
'filename' => $filename . '.' . $ext 'filename' => $filename . '.' . $ext
]; ];