Merge pull request #289 from Max-malRichtig/bludit-patch-uploader

fix typo in uploader.php
This commit is contained in:
Diego Najar 2016-06-14 20:28:39 +02:00 committed by GitHub
commit 493991d25f
1 changed files with 2 additions and 2 deletions

View File

@ -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
)));
?>
?>