mirror of
https://github.com/friendica/friendica
synced 2025-04-27 00:30:10 +00:00
Rename "fetchUrl" and "fetchUrlFull" to "fetch" and "fetchFull"
This commit is contained in:
parent
7029012f27
commit
657d08f09f
20 changed files with 32 additions and 34 deletions
|
@ -27,7 +27,6 @@ use Friendica\Core\Config\Cache;
|
|||
use Friendica\Database\Database;
|
||||
use Friendica\Database\DBStructure;
|
||||
use Friendica\DI;
|
||||
use Friendica\Network\HTTPRequest;
|
||||
use Friendica\Util\Images;
|
||||
use Friendica\Util\Strings;
|
||||
|
||||
|
@ -548,11 +547,11 @@ class Installer
|
|||
$help = "";
|
||||
$error_msg = "";
|
||||
if (function_exists('curl_init')) {
|
||||
$fetchResult = DI::httpRequest()->fetchUrlFull($baseurl . "/install/testrewrite");
|
||||
$fetchResult = DI::httpRequest()->fetchFull($baseurl . "/install/testrewrite");
|
||||
|
||||
$url = Strings::normaliseLink($baseurl . "/install/testrewrite");
|
||||
if ($fetchResult->getReturnCode() != 204) {
|
||||
$fetchResult = DI::httpRequest()->fetchUrlFull($url);
|
||||
$fetchResult = DI::httpRequest()->fetchFull($url);
|
||||
}
|
||||
|
||||
if ($fetchResult->getReturnCode() != 204) {
|
||||
|
|
|
@ -123,7 +123,7 @@ class Search
|
|||
$searchUrl .= '&page=' . $page;
|
||||
}
|
||||
|
||||
$resultJson = DI::httpRequest()->fetchUrl($searchUrl, false, 0, 'application/json');
|
||||
$resultJson = DI::httpRequest()->fetch($searchUrl, false, 0, 'application/json');
|
||||
|
||||
$results = json_decode($resultJson, true);
|
||||
|
||||
|
|
|
@ -996,7 +996,7 @@ class Worker
|
|||
}
|
||||
|
||||
$url = DI::baseUrl() . '/worker';
|
||||
DI::httpRequest()->fetchUrl($url, false, 1);
|
||||
DI::httpRequest()->fetch($url, false, 1);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue