fix typo in uploader.php
init.php sets up different variables than the one used in here. ( 'IMG_' is missing )
This commit is contained in:
parent
cf3ef56e60
commit
d2879f2a71
@ -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
Block a user