]> git.mxchange.org Git - friendica.git/blobdiff - src/Util/Images.php
Merge pull request #10257 from annando/apcontact-no-normalize
[friendica.git] / src / Util / Images.php
index 35f0cfc042e4be875e1116814b048bc361a846dc..a65f9a1a8b16fa24ed022a74ea1711d4aee0730a 100644 (file)
@@ -1,6 +1,6 @@
 <?php
 /**
- * @copyright Copyright (C) 2020, Friendica
+ * @copyright Copyright (C) 2010-2021, the Friendica project
  *
  * @license GNU AGPL version 3 or any later version
  *
@@ -184,7 +184,7 @@ class Images
                        return $data;
                }
 
-               $img_str = Network::fetchUrl($url, true, 4);
+               $img_str = DI::httpRequest()->fetch($url, 4);
 
                if (!$img_str) {
                        return [];
@@ -200,7 +200,7 @@ class Images
 
                                $stamp1 = microtime(true);
                                file_put_contents($tempfile, $img_str);
-                               DI::profiler()->saveTimestamp($stamp1, "file", System::callstack());
+                               DI::profiler()->saveTimestamp($stamp1, "file");
 
                                $data = getimagesize($tempfile);
                                unlink($tempfile);