]> git.mxchange.org Git - friendica.git/blobdiff - src/Module/Install.php
Remove deprecated App::getHostName() - process methods to DI::baseUrl()->getHostName()
[friendica.git] / src / Module / Install.php
index 107f83e77d3af5409f314044ed89f178802ba392..10a6176e402e2fba7f3866da298b45f93dfb2888 100644 (file)
@@ -51,14 +51,13 @@ class Install extends BaseModule
        {
                $a = DI::app();
 
-               if (!$a->getMode()->isInstall()) {
+               if (!DI::mode()->isInstall()) {
                        throw new HTTPException\ForbiddenException();
                }
 
                // route: install/testrwrite
                // $baseurl/install/testrwrite to test if rewrite in .htaccess is working
-               // @TODO: Replace with parameter from router
-               if ($a->getArgumentValue(1, '') == 'testrewrite') {
+               if (DI::args()->get(1, '') == 'testrewrite') {
                        // Status Code 204 means that it worked without content
                        throw new HTTPException\NoContentException();
                }
@@ -111,7 +110,7 @@ class Install extends BaseModule
                                self::checkSetting($configCache, $_POST, 'database', 'database', '');
 
                                // If we cannot connect to the database, return to the previous step
-                               if (!self::$installer->checkDB($a->getDBA())) {
+                               if (!self::$installer->checkDB(DI::dba())) {
                                        self::$currentWizardStep = self::DATABASE_CONFIG;
                                }
 
@@ -135,7 +134,7 @@ class Install extends BaseModule
                                self::checkSetting($configCache, $_POST, 'config', 'admin_email', '');
 
                                // If we cannot connect to the database, return to the Database config wizard
-                               if (!self::$installer->checkDB($a->getDBA())) {
+                               if (!self::$installer->checkDB(DI::dba())) {
                                        self::$currentWizardStep = self::DATABASE_CONFIG;
                                        return;
                                }