X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=src%2FModule%2FInstall.php;h=8f872c683e4421cab608df6d6bbb4e093ddf0706;hb=489cd0884ade34932fee45f136f77949bb3e3f91;hp=2a9bab81ec085fbe944c11fe36274e90255db2f1;hpb=e8929efbea071505aa583c4b8576f0bd13d06ea8;p=friendica.git diff --git a/src/Module/Install.php b/src/Module/Install.php index 2a9bab81ec..8f872c683e 100644 --- a/src/Module/Install.php +++ b/src/Module/Install.php @@ -1,6 +1,6 @@ getConfigCache(); @@ -178,7 +177,7 @@ class Install extends BaseModule } } - public static function content(array $parameters = []) + public function content(): string { $a = DI::app(); $configCache = $a->getConfigCache(); @@ -371,19 +370,17 @@ class Install extends BaseModule /** * Checks the $_POST settings and updates the config Cache for it * - * @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 + * @param \Friendica\Core\Config\ValueObject\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(Cache $configCache, array $post, $cat, $key, $default = null) { $configCache->set($cat, $key, - Strings::escapeTags( - trim(($post[sprintf('%s-%s', $cat, $key)] ?? '') ?: - ($default ?? $configCache->get($cat, $key)) - ) + trim(($post[sprintf('%s-%s', $cat, $key)] ?? '') ?: + ($default ?? $configCache->get($cat, $key)) ) ); }