mirror of
https://github.com/friendica/friendica
synced 2025-04-24 10:30:11 +00:00
Move post/curl/fetchUrl/fetchUrlFull to own class "Network\HTTPRequest"
This commit is contained in:
parent
2889d59b83
commit
5344efef71
43 changed files with 528 additions and 485 deletions
|
@ -24,7 +24,7 @@ namespace Friendica\Worker;
|
|||
use Friendica\Core\Logger;
|
||||
use Friendica\Database\DBA;
|
||||
use Friendica\DI;
|
||||
use Friendica\Util\Network;
|
||||
use Friendica\Network\HTTPRequest;
|
||||
|
||||
/**
|
||||
* Check the git repository VERSION file and save the version to the DB
|
||||
|
@ -55,7 +55,7 @@ class CheckVersion
|
|||
Logger::log("Checking VERSION from: ".$checked_url, Logger::DEBUG);
|
||||
|
||||
// fetch the VERSION file
|
||||
$gitversion = DBA::escape(trim(Network::fetchUrl($checked_url)));
|
||||
$gitversion = DBA::escape(trim(HTTPRequest::fetchUrl($checked_url)));
|
||||
Logger::log("Upstream VERSION is: ".$gitversion, Logger::DEBUG);
|
||||
|
||||
DI::config()->set('system', 'git_friendica_version', $gitversion);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue