]> git.mxchange.org Git - friendica.git/blobdiff - src/Object/Image.php
Restore previous permission comment in Widget\CalendarExport
[friendica.git] / src / Object / Image.php
index 84c462205e28e82d10cbf6dc1285b1ba1c634967..2f4d55dc0ac15c3a03d407f36c59bc67abbd1a1b 100644 (file)
@@ -774,7 +774,7 @@ class Image
                $data = Cache::get($url);
 
                if (is_null($data) || !$data || !is_array($data)) {
-                       $img_str = Network::fetchURL($url, true, $redirects, 4);
+                       $img_str = Network::fetchUrl($url, true, $redirects, 4);
                        $filesize = strlen($img_str);
 
                        if (function_exists("getimagesizefromstring")) {
@@ -937,7 +937,7 @@ class Image
                $width = $Image->getWidth();
                $height = $Image->getHeight();
 
-               $hash = photo_new_resource();
+               $hash = Photo::newResource();
 
                $smallest = 0;