]> git.mxchange.org Git - friendica.git/blobdiff - src/Module/Install.php
Remove deprecated code
[friendica.git] / src / Module / Install.php
index 4b0809e1f99b19ad4ed26fff6b7993fa57df2a27..392adaab1bcf6eaccd939216cc4fb08287ac1e6e 100644 (file)
@@ -5,8 +5,7 @@ namespace Friendica\Module;
 use Friendica\App;
 use Friendica\BaseModule;
 use Friendica\Core;
-use Friendica\Core\Config\Cache\ConfigCache;
-use Friendica\Core\L10n;
+use Friendica\Core\Config\Cache;
 use Friendica\Core\Renderer;
 use Friendica\DI;
 use Friendica\Network\HTTPException;
@@ -255,7 +254,7 @@ class Install extends BaseModule
 
                        case self::SITE_SETTINGS:
                                /* Installed langs */
-                               $lang_choices = L10n::getAvailableLanguages();
+                               $lang_choices = DI::l10n()->getAvailableLanguages();
 
                                $tpl    = Renderer::getMarkupTemplate('install_settings.tpl');
                                $output .= Renderer::replaceMacros($tpl, [
@@ -333,13 +332,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(