Merge pull request #289 from Max-malRichtig/bludit-patch-uploader
fix typo in uploader.php
This commit is contained in:
commit
493991d25f
|
@ -40,7 +40,7 @@ if($type=='profilePicture')
|
|||
$username = Sanitize::html($_POST['username']);
|
||||
$tmpName = $username.'.png';
|
||||
$Image = new Image();
|
||||
$Image->setImage(PATH_TMP.'original'.'.'.$fileExtension, PROFILE_WIDTH, PROFILE_HEIGHT, 'crop');
|
||||
$Image->setImage(PATH_TMP.'original'.'.'.$fileExtension, PROFILE_IMG_WIDTH, PROFILE_IMG_HEIGHT, 'crop');
|
||||
$Image->saveImage(PATH_UPLOADS_PROFILES.$tmpName, PROFILE_IMG_QUALITY, false, true);
|
||||
}
|
||||
// --- OTHERS ---
|
||||
|
@ -64,4 +64,4 @@ exit(json_encode(array(
|
|||
'filename'=>$tmpName
|
||||
)));
|
||||
|
||||
?>
|
||||
?>
|
||||
|
|
Loading…
Reference in New Issue