diff options
author | friendica <info@friendica.com> | 2012-07-10 06:28:02 -0700 |
---|---|---|
committer | friendica <info@friendica.com> | 2012-07-10 06:28:02 -0700 |
commit | 94fabe3a2942ca93b436694f180f8eb2a72df918 (patch) | |
tree | 37333905f9d0b0c3a3d0fdf4366d4720cee9e680 /mod/profile_photo.php | |
parent | 1215de575d9cda66b434f21dafdf44f986638b71 (diff) | |
download | volse-hubzilla-94fabe3a2942ca93b436694f180f8eb2a72df918.tar.gz volse-hubzilla-94fabe3a2942ca93b436694f180f8eb2a72df918.tar.bz2 volse-hubzilla-94fabe3a2942ca93b436694f180f8eb2a72df918.zip |
upstream fixes and a lot of taxonomy stuff
Diffstat (limited to 'mod/profile_photo.php')
-rw-r--r-- | mod/profile_photo.php | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/mod/profile_photo.php b/mod/profile_photo.php index e44707f9b..fc0e0419e 100644 --- a/mod/profile_photo.php +++ b/mod/profile_photo.php @@ -127,7 +127,7 @@ function profile_photo_post(&$a) { @unlink($src); return; } - + $ph->orient($src); @unlink($src); return profile_photo_crop_ui_head($a, $ph); @@ -237,6 +237,12 @@ function profile_photo_content(&$a) { if(! function_exists('_crop_ui_head')) { function profile_photo_crop_ui_head(&$a, $ph){ + $max_length = get_config('system','max_image_length'); + if(! $max_length) + $max_length = MAX_IMAGE_LENGTH; + if($max_length > 0) + $ph->scaleImage($max_length); + $width = $ph->getWidth(); $height = $ph->getHeight(); |