]> git.mxchange.org Git - friendica-addons.git/blobdiff - fromgplus/fromgplus.php
Revert "Revert "Move objects to src""
[friendica-addons.git] / fromgplus / fromgplus.php
index 1a1ae682cfee3d8d4937a6df98b0d4ebe6c8d36a..0699f75bbf178d3d6a64191c5b830d26e29128c2 100644 (file)
@@ -11,7 +11,7 @@ define('FROMGPLUS_DEFAULT_POLL_INTERVAL', 30); // given in minutes
 
 use Friendica\Core\Config;
 use Friendica\Core\PConfig;
-use Friendica\Object\Photo;
+use Friendica\Object\Image;
 
 require_once 'mod/share.php';
 require_once 'mod/parse_url.php';
@@ -264,12 +264,12 @@ function fromgplus_cleanupgoogleproxy($fullImage, $image) {
        }
 
        if ($cleaned["full"] != "")
-               $infoFull = Photo::getInfoFromURL($cleaned["full"]);
+               $infoFull = Image::getInfoFromURL($cleaned["full"]);
        else
                $infoFull = array("0" => 0, "1" => 0);
 
        if ($cleaned["preview"] != "")
-               $infoPreview = Photo::getInfoFromURL($cleaned["preview"]);
+               $infoPreview = Image::getInfoFromURL($cleaned["preview"]);
        else
                $infoFull = array("0" => 0, "1" => 0);
 
@@ -352,9 +352,9 @@ function fromgplus_handleattachments($a, $uid, $item, $displaytext, $shared) {
                                        $images = fromgplus_cleanupgoogleproxy($attachment->fullImage, $attachment->image);
                                } else {
                                        if ($attachment->fullImage->url != "") {
-                                               $images = Photo::storePhoto($a, $uid, "", $attachment->fullImage->url);
+                                               $images = Image::storePhoto($a, $uid, "", $attachment->fullImage->url);
                                        } elseif ($attachment->image->url != "") {
-                                               $images = Photo::storePhoto($a, $uid, "", $attachment->image->url);
+                                               $images = Image::storePhoto($a, $uid, "", $attachment->image->url);
                                        }
                                }