aboutsummaryrefslogtreecommitdiffstats
path: root/mod
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2012-07-03 16:26:58 -0700
committerfriendica <info@friendica.com>2012-07-03 16:26:58 -0700
commitb550b1326b9e45c1938b738407c6b32cbace09cb (patch)
treee9f9fdf8ef08941fd5ad5b7473687b663f65c3a9 /mod
parent7926a0d171e1e84dcc551f67ef0d8f7bfac4a19f (diff)
parente3828fe6756c9bc15ecc386e182553bf8920c521 (diff)
downloadvolse-hubzilla-b550b1326b9e45c1938b738407c6b32cbace09cb.tar.gz
volse-hubzilla-b550b1326b9e45c1938b738407c6b32cbace09cb.tar.bz2
volse-hubzilla-b550b1326b9e45c1938b738407c6b32cbace09cb.zip
Merge https://github.com/friendica/friendica into pull
Diffstat (limited to 'mod')
-rw-r--r--mod/photos.php6
1 files changed, 6 insertions, 0 deletions
diff --git a/mod/photos.php b/mod/photos.php
index ea4d7f81f..624f0bdca 100644
--- a/mod/photos.php
+++ b/mod/photos.php
@@ -743,6 +743,12 @@ function photos_post(&$a) {
$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();