]> 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 b780776cc100cd29a1fe0718d43ee47af835baf9..28db93d292de706f36a01ca76912f9cac51b24f3 100644 (file)
@@ -1,7 +1,24 @@
 <?php
 /**
- * @file src/Core/Install.php
+ * @copyright Copyright (C) 2020, Friendica
+ *
+ * @license GNU AGPL version 3 or any later version
+ *
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU Affero General Public License as
+ * published by the Free Software Foundation, either version 3 of the
+ * License, or (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU Affero General Public License for more details.
+ *
+ * You should have received a copy of the GNU Affero General Public License
+ * along with this program.  If not, see <https://www.gnu.org/licenses/>.
+ *
  */
+
 namespace Friendica\Core;
 
 use DOMDocument;
@@ -11,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;
 
 /**
@@ -242,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
@@ -531,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) {