From: Adam Magness Date: Thu, 30 Nov 2017 12:42:34 +0000 (-0500) Subject: Update Function call X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=797f0c4ca260649a261552fe8eaffafe67c73c6e;p=friendica-addons.git Update Function call update function call for Photo class. --- diff --git a/fromgplus/fromgplus.php b/fromgplus/fromgplus.php index 665590d3..f6604207 100644 --- a/fromgplus/fromgplus.php +++ b/fromgplus/fromgplus.php @@ -349,13 +349,14 @@ function fromgplus_handleattachments($a, $uid, $item, $displaytext, $shared) { case "photo": // Don't store shared pictures in your wall photos (to prevent a possible violating of licenses) - if ($shared) + if ($shared) { $images = fromgplus_cleanupgoogleproxy($attachment->fullImage, $attachment->image); - else { - if ($attachment->fullImage->url != "") - $images = store_photo($a, $uid, "", $attachment->fullImage->url); - elseif ($attachment->image->url != "") - $images = store_photo($a, $uid, "", $attachment->image->url); + } else { + if ($attachment->fullImage->url != "") { + $images = Photo::storePhoto($a, $uid, "", $attachment->fullImage->url); + } elseif ($attachment->image->url != "") { + $images = Photo::storePhoto($a, $uid, "", $attachment->image->url); + } } if ($images["preview"] != "") { @@ -366,8 +367,9 @@ function fromgplus_handleattachments($a, $uid, $item, $displaytext, $shared) { $post .= "\n[img]".$images["full"]."[/img]\n"; $pagedata["images"][0]["src"] = $images["full"]; - if ($images["preview"] != "") + if ($images["preview"] != "") { $pagedata["images"][1]["src"] = $images["preview"]; + } } if (($attachment->displayName != "") && (fromgplus_cleantext($attachment->displayName) != fromgplus_cleantext($displaytext))) {