Merge pull request #4347 from annando/develop

FetchUrl is not FetchURL ...
This commit is contained in:
Hypolite Petovan 2018-01-27 19:01:24 -05:00 committed by GitHub
commit b85a9cbff6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -12,7 +12,7 @@ use Friendica\Core\PConfig;
use Friendica\Core\System; use Friendica\Core\System;
use Friendica\Object\Image; use Friendica\Object\Image;
use Friendica\Util\ParseUrl; use Friendica\Util\ParseUrl;
use Friendica\Content\OEmbed; use Friendica\Util\Network;
require_once "include/bbcode.php"; require_once "include/bbcode.php";
require_once "include/html2plain.php"; require_once "include/html2plain.php";
@ -511,8 +511,8 @@ class BBCode
} else { } else {
$scaled = $mtch[1]; $scaled = $mtch[1];
} }
$i = OEmbed::fetchURL($scaled); $i = Network::fetchUrl($scaled);
if (! $i) { if (!$i) {
return $srctext; return $srctext;
} }