]> git.mxchange.org Git - friendica.git/blobdiff - src/Core/Installer.php
Merge pull request #8911 from MrPetovan/task/curl_DI
[friendica.git] / src / Core / Installer.php
index 31cdb26b9d5ef557eeaed5d5aa994269089e518e..28db93d292de706f36a01ca76912f9cac51b24f3 100644 (file)
@@ -28,7 +28,6 @@ use Friendica\Database\Database;
 use Friendica\Database\DBStructure;
 use Friendica\DI;
 use Friendica\Util\Images;
-use Friendica\Util\Network;
 use Friendica\Util\Strings;
 
 /**
@@ -259,7 +258,7 @@ class Installer
                $help = "";
                if (!$passed) {
                        $help .= DI::l10n()->t('Could not find a command line version of PHP in the web server PATH.') . EOL;
-                       $help .= DI::l10n()->t("If you don't have a command line version of PHP installed on your server, you will not be able to run the background processing. See <a href='https://github.com/friendica/friendica/blob/master/doc/Install.md#set-up-the-worker'>'Setup the worker'</a>") . EOL;
+                       $help .= DI::l10n()->t("If you don't have a command line version of PHP installed on your server, you will not be able to run the background processing. See <a href='https://github.com/friendica/friendica/blob/stable/doc/Install.md#set-up-the-worker'>'Setup the worker'</a>") . EOL;
                        $help .= EOL . EOL;
                        $tpl = Renderer::getMarkupTemplate('field_input.tpl');
                        /// @todo Separate backend Installer class and presentation layer/view
@@ -548,11 +547,11 @@ class Installer
                $help = "";
                $error_msg = "";
                if (function_exists('curl_init')) {
-                       $fetchResult = Network::fetchUrlFull($baseurl . "/install/testrewrite");
+                       $fetchResult = DI::httpRequest()->fetchFull($baseurl . "/install/testrewrite");
 
                        $url = Strings::normaliseLink($baseurl . "/install/testrewrite");
                        if ($fetchResult->getReturnCode() != 204) {
-                               $fetchResult = Network::fetchUrlFull($url);
+                               $fetchResult = DI::httpRequest()->fetchFull($url);
                        }
 
                        if ($fetchResult->getReturnCode() != 204) {