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:
Max-malRichtig 2016-06-14 14:26:46 +02:00 committed by GitHub
parent cf3ef56e60
commit d2879f2a71
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 ---