Make "HTTPRequest::fetchUrlFull" dynamic

This commit is contained in:
nupplaPhil 2020-03-04 22:19:59 +01:00 committed by Hypolite Petovan
parent 8793096c16
commit 3b4cf87c95
4 changed files with 6 additions and 6 deletions

View file

@ -548,11 +548,11 @@ class Installer
$help = "";
$error_msg = "";
if (function_exists('curl_init')) {
$fetchResult = HTTPRequest::fetchUrlFull($baseurl . "/install/testrewrite");
$fetchResult = DI::httpRequest()->fetchUrlFull($baseurl . "/install/testrewrite");
$url = Strings::normaliseLink($baseurl . "/install/testrewrite");
if ($fetchResult->getReturnCode() != 204) {
$fetchResult = HTTPRequest::fetchUrlFull($url);
$fetchResult = DI::httpRequest()->fetchUrlFull($url);
}
if ($fetchResult->getReturnCode() != 204) {