]> git.mxchange.org Git - friendica.git/blobdiff - src/ParseUrl.php
Fix class Object\Item not found in Object\Post
[friendica.git] / src / ParseUrl.php
index c5c23d7d9c7fc5780eb101f6a86dba8f33d184fa..2183a9c1e05698cdacd8c1bb42905121547af2e0 100644 (file)
@@ -353,7 +353,7 @@ class ParseUrl
                                }
 
                                $src = self::completeUrl($attr["src"], $url);
-                               $photodata = get_photo_info($src);
+                               $photodata = Photo::getInfoFromURL($src);
 
                                if (($photodata) && ($photodata[0] > 150) && ($photodata[1] > 150)) {
                                        if ($photodata[0] > 300) {
@@ -374,7 +374,7 @@ class ParseUrl
 
                        unset($siteinfo["image"]);
 
-                       $photodata = get_photo_info($src);
+                       $photodata = Photo::getInfoFromURL($src);
 
                        if (($photodata) && ($photodata[0] > 10) && ($photodata[1] > 10)) {
                                $siteinfo["images"][] = array("src" => $src,