AvatarSettings more aligned to FormAction

TODO: Make classes called AvatarCropForm and AvatarUploadForm
This commit is contained in:
Mikael Nordfeldth
2015-07-16 19:21:12 +02:00
parent 2d44400cfc
commit fd2efbc6f8
2 changed files with 31 additions and 79 deletions

View File

@@ -189,6 +189,8 @@ class ImageFile
case UPLOAD_ERR_NO_FILE:
// No file; probably just a non-AJAX submission.
throw new ClientException(_('No file uploaded.'));
default:
common_log(LOG_ERR, __METHOD__ . ": Unknown upload error " . $_FILES[$param]['error']);
// TRANS: Exception thrown when uploading an image fails for an unknown reason.