aboutsummaryrefslogtreecommitdiffstats
path: root/include/photo
diff options
context:
space:
mode:
authorMario Vavti <mario@mariovavti.com>2015-10-29 11:34:30 +0100
committerMario Vavti <mario@mariovavti.com>2015-10-29 11:34:30 +0100
commitd66be62516c1297135d707f0d565e100651529d5 (patch)
treee36b369c4feed25f25ee491cf369ab8a9c8e156d /include/photo
parent0a9b2b6b15bcf3f3b2fe604defd0cd99934f992b (diff)
downloadvolse-hubzilla-d66be62516c1297135d707f0d565e100651529d5.tar.gz
volse-hubzilla-d66be62516c1297135d707f0d565e100651529d5.tar.bz2
volse-hubzilla-d66be62516c1297135d707f0d565e100651529d5.zip
move it up
Diffstat (limited to 'include/photo')
-rw-r--r--include/photo/photo_driver.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/photo/photo_driver.php b/include/photo/photo_driver.php
index f9b6e5ea8..e980a96e1 100644
--- a/include/photo/photo_driver.php
+++ b/include/photo/photo_driver.php
@@ -598,6 +598,7 @@ function import_xchan_photo($photo,$xchan,$thing = false) {
if($result['success']) {
$img_str = $result['body'];
+ $type = guess_image_type($photo, $result['header']);
$h = explode("\n",$result['header']);
if($h) {
@@ -609,7 +610,6 @@ function import_xchan_photo($photo,$xchan,$thing = false) {
}
}
}
- $type = guess_image_type($photo, $result['header']);
}
}
else {