]> git.mxchange.org Git - friendica.git/commitdiff
Inline mode call into App::processRequest()
authorArt4 <art4@wlabs.de>
Fri, 20 Dec 2024 10:05:13 +0000 (10:05 +0000)
committerArt4 <art4@wlabs.de>
Fri, 20 Dec 2024 10:05:13 +0000 (10:05 +0000)
index.php
src/App.php

index d98b6db73a436d2837f6ff6a1cd40ccccee9997b..66b5f224ade3e6fe7bf9ba9d973edde55d1f4cef 100644 (file)
--- a/index.php
+++ b/index.php
@@ -31,8 +31,6 @@ $a = \Friendica\App::fromDice($dice);
 
 $a->processRequest();
 
-\Friendica\DI::mode()->setExecutor(\Friendica\App\Mode::INDEX);
-
 $a->runFrontend(
        $dice->create(\Friendica\App\Router::class),
        $dice->create(\Friendica\Core\PConfig\Capability\IManagePersonalConfigValues::class),
index 04520db2feb229a12da143cbf0a2de01f8bda8de..b151f78b39f31abd7111061e6cc8e43130489ff0 100644 (file)
@@ -160,6 +160,8 @@ class App
                        $this->container->create(DbaDefinition::class),
                        $this->container->create(ViewDefinition::class),
                );
+
+               $this->mode->setExecutor(Mode::INDEX);
        }
 
        /**