aboutsummaryrefslogtreecommitdiffstats
path: root/mod
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
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')
-rw-r--r--mod/photos.php3
-rw-r--r--mod/profile.php2
-rw-r--r--mod/profile_photo.php8
-rw-r--r--mod/wall_upload.php7
4 files changed, 16 insertions, 4 deletions
diff --git a/mod/photos.php b/mod/photos.php
index 42cad42f9..624f0bdca 100644
--- a/mod/photos.php
+++ b/mod/photos.php
@@ -740,8 +740,7 @@ function photos_post(&$a) {
killme();
}
- if($ph->getType() != 'image/png')
- $ph->orient($src);
+ $ph->orient($src);
@unlink($src);
$max_length = get_config('system','max_image_length');
diff --git a/mod/profile.php b/mod/profile.php
index b53639c35..b48e035af 100644
--- a/mod/profile.php
+++ b/mod/profile.php
@@ -287,7 +287,7 @@ function profile_content(&$a, $update = 0) {
$tag_finder[] = $item['item_id'];
$tag_finder_str = implode(', ', $tag_finder);
$tags = q("select * from term where oid in ( '%s' ) and otype = %d",
- dbesc($tag_finder),
+ dbesc($tag_finder_str),
intval(TERM_OBJ_POST)
);
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();
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();