From d2879f2a715d3c9102bc9ef8b78cca52819f9d19 Mon Sep 17 00:00:00 2001 From: Max-malRichtig Date: Tue, 14 Jun 2016 14:26:46 +0200 Subject: [PATCH] fix typo in uploader.php init.php sets up different variables than the one used in here. ( 'IMG_' is missing ) --- bl-kernel/ajax/uploader.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bl-kernel/ajax/uploader.php b/bl-kernel/ajax/uploader.php index 5ed4ecc5..74206383 100644 --- a/bl-kernel/ajax/uploader.php +++ b/bl-kernel/ajax/uploader.php @@ -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 ))); -?> \ No newline at end of file +?>