mirror of
https://github.com/friendica/friendica
synced 2025-05-03 05:04:15 +02:00
Move fetch_url
move fetch_url function
This commit is contained in:
parent
1b51777825
commit
c67452f72e
25 changed files with 55 additions and 35 deletions
|
@ -12,6 +12,7 @@ use Friendica\Core\PConfig;
|
|||
use Friendica\Core\System;
|
||||
use Friendica\Database\DBM;
|
||||
use Friendica\Object\Image;
|
||||
use Friendica\Util\Network;
|
||||
use dba;
|
||||
|
||||
require_once 'include/dba.php';
|
||||
|
@ -101,7 +102,7 @@ class Photo
|
|||
$photo_failure = false;
|
||||
|
||||
$filename = basename($image_url);
|
||||
$img_str = fetch_url($image_url, true);
|
||||
$img_str = Network::fetchURL($image_url, true);
|
||||
|
||||
if ($quit_on_error && ($img_str == "")) {
|
||||
return false;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue