]> git.mxchange.org Git - friendica.git/blobdiff - src/Module/Install.php
Merge pull request #9345 from annando/issue-9344
[friendica.git] / src / Module / Install.php
index e20d80f2055bb6351a57ddf02c5b36b38c692f7c..1448d5544c92de61ccd0b60b6882ba3a4fb84716 100644 (file)
@@ -1,11 +1,30 @@
 <?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\Module;
 
 use Friendica\App;
 use Friendica\BaseModule;
 use Friendica\Core;
-use Friendica\Core\Config\Cache\ConfigCache;
+use Friendica\Core\Config\Cache;
 use Friendica\Core\Renderer;
 use Friendica\DI;
 use Friendica\Network\HTTPException;
@@ -169,7 +188,7 @@ class Install extends BaseModule
                                        '$pass'        => DI::l10n()->t('System check'),
                                        '$checks'      => self::$installer->getChecks(),
                                        '$passed'      => $status,
-                                       '$see_install' => DI::l10n()->t('Please see the file "INSTALL.txt".'),
+                                       '$see_install' => DI::l10n()->t('Please see the file "doc/INSTALL.md".'),
                                        '$next'        => DI::l10n()->t('Next'),
                                        '$reload'      => DI::l10n()->t('Check again'),
                                        '$php_path'    => $php_path,
@@ -332,13 +351,13 @@ class Install extends BaseModule
        /**
         * Checks the $_POST settings and updates the config Cache for it
         *
-        * @param ConfigCache $configCache The current config cache
+        * @param Cache       $configCache The current config cache
         * @param array       $post        The $_POST data
         * @param string      $cat         The category of the setting
         * @param string      $key         The key of the setting
         * @param null|string $default     The default value
         */
-       private static function checkSetting(ConfigCache $configCache, array $post, $cat, $key, $default = null)
+       private static function checkSetting(Cache $configCache, array $post, $cat, $key, $default = null)
        {
                $configCache->set($cat, $key,
                        Strings::escapeTags(