]> git.mxchange.org Git - friendica.git/commitdiff
Fix fatal error because of unknown function "fetchUrl"
authorMichael <heluecht@pirati.ca>
Mon, 27 Jul 2020 11:50:36 +0000 (11:50 +0000)
committerMichael <heluecht@pirati.ca>
Mon, 27 Jul 2020 11:50:36 +0000 (11:50 +0000)
src/Core/System.php
src/Protocol/Salmon.php

index 67ee3a80383dd66d40291dabfbd8390f0b9b7d7d..8b2c2d500516326108b5c2d61527be6e0ad272a1 100644 (file)
@@ -48,7 +48,7 @@ class System
                $previous = ['class' => '', 'function' => '', 'database' => false];
 
                // The ignore list contains all functions that are only wrapper functions
-               $ignore = ['fetchUrl', 'call_user_func_array'];
+               $ignore = ['call_user_func_array'];
 
                while ($func = array_pop($trace)) {
                        if (!empty($func['class'])) {
index 921c060f8867f2e0ce058a410ab14853c8acc22f..88c342a87cdaa7d19f13eeba80504acd7d5e5423 100644 (file)
@@ -22,6 +22,7 @@
 namespace Friendica\Protocol;
 
 use Friendica\Core\Logger;
+use Friendica\DI;
 use Friendica\Network\Probe;
 use Friendica\Util\Crypto;
 use Friendica\Util\Strings;
@@ -71,7 +72,7 @@ class Salmon
                                                $ret[$x] = substr($ret[$x], 5);
                                        }
                                } elseif (Strings::normaliseLink($ret[$x]) == 'http://') {
-                                       $ret[$x] = DI::httpRequest()->fetchUrl($ret[$x]);
+                                       $ret[$x] = DI::httpRequest()->fetch($ret[$x]);
                                }
                        }
                }