aboutsummaryrefslogtreecommitdiffstats
path: root/mod/wall_upload.php
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2012-07-10 06:28:02 -0700
committerfriendica <info@friendica.com>2012-07-10 06:28:02 -0700
commit94fabe3a2942ca93b436694f180f8eb2a72df918 (patch)
tree37333905f9d0b0c3a3d0fdf4366d4720cee9e680 /mod/wall_upload.php
parent1215de575d9cda66b434f21dafdf44f986638b71 (diff)
downloadvolse-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/wall_upload.php')
-rw-r--r--mod/wall_upload.php7
1 files changed, 7 insertions, 0 deletions
diff --git a/mod/wall_upload.php b/mod/wall_upload.php
index 5990f2834..07d97d17a 100644
--- a/mod/wall_upload.php
+++ b/mod/wall_upload.php
@@ -101,8 +101,15 @@ function wall_upload_post(&$a) {
killme();
}
+ $ph->orient($src);
@unlink($src);
+ $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();