mirror of
https://github.com/friendica/friendica
synced 2025-04-28 03:50:17 +00:00
Move z_fetch_url
move z_fetch_url method
This commit is contained in:
parent
c67452f72e
commit
2f9642392d
14 changed files with 58 additions and 60 deletions
|
@ -25,6 +25,7 @@ use Friendica\Model\User;
|
|||
use Friendica\Object\Image;
|
||||
use Friendica\Protocol\OStatus;
|
||||
use Friendica\Util\Crypto;
|
||||
use Friendica\Util\Network;
|
||||
use Friendica\Util\XML;
|
||||
|
||||
use dba;
|
||||
|
@ -1186,7 +1187,7 @@ class DFRN
|
|||
|
||||
logger('dfrn_deliver: ' . $url);
|
||||
|
||||
$ret = z_fetch_url($url);
|
||||
$ret = Network::zFetchURL($url);
|
||||
|
||||
if ($ret['errno'] == CURLE_OPERATION_TIMEDOUT) {
|
||||
return -2; // timed out
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue