mirror of
https://github.com/friendica/friendica
synced 2025-05-07 11:04:10 +02: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
|
@ -54,7 +54,7 @@ class CheckVersion
|
|||
Logger::log("Checking VERSION from: ".$checked_url, Logger::DEBUG);
|
||||
|
||||
// fetch the VERSION file
|
||||
$gitversion = DBA::escape(trim(DI::httpRequest()->fetchUrl($checked_url)));
|
||||
$gitversion = DBA::escape(trim(DI::httpRequest()->fetch($checked_url)));
|
||||
Logger::log("Upstream VERSION is: ".$gitversion, Logger::DEBUG);
|
||||
|
||||
DI::config()->set('system', 'git_friendica_version', $gitversion);
|
||||
|
|
|
@ -60,7 +60,7 @@ class CronJobs
|
|||
// Now trying to register
|
||||
$url = 'http://the-federation.info/register/' . DI::baseUrl()->getHostname();
|
||||
Logger::debug('Check registering url', ['url' => $url]);
|
||||
$ret = DI::httpRequest()->fetchUrl($url);
|
||||
$ret = DI::httpRequest()->fetch($url);
|
||||
Logger::debug('Check registering answer', ['answer' => $ret]);
|
||||
Logger::info('cron_end');
|
||||
break;
|
||||
|
|
|
@ -53,7 +53,7 @@ class Directory
|
|||
|
||||
Logger::log('Updating directory: ' . $arr['url'], Logger::DEBUG);
|
||||
if (strlen($arr['url'])) {
|
||||
DI::httpRequest()->fetchUrl($dir . '?url=' . bin2hex($arr['url']));
|
||||
DI::httpRequest()->fetch($dir . '?url=' . bin2hex($arr['url']));
|
||||
}
|
||||
|
||||
return;
|
||||
|
|
|
@ -51,7 +51,7 @@ class SearchDirectory
|
|||
}
|
||||
}
|
||||
|
||||
$x = DI::httpRequest()->fetchUrl(Search::getGlobalDirectory() . '/lsearch?p=1&n=500&search=' . urlencode($search));
|
||||
$x = DI::httpRequest()->fetch(Search::getGlobalDirectory() . '/lsearch?p=1&n=500&search=' . urlencode($search));
|
||||
$j = json_decode($x);
|
||||
|
||||
if (!empty($j->results)) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue