]> git.mxchange.org Git - friendica.git/commitdiff
Move Mode::setExecutor() call inside App::runFrontend()
authorArt4 <art4@wlabs.de>
Wed, 22 Jan 2025 11:59:24 +0000 (11:59 +0000)
committerArt4 <art4@wlabs.de>
Wed, 22 Jan 2025 11:59:24 +0000 (11:59 +0000)
src/App.php

index 5ee8562dbfac043b79dc69663d176f9881899a63..6546d5677880ebd69b035e50dc2633b267dfef19 100644 (file)
@@ -166,8 +166,6 @@ class App
 
                $this->registerTemplateEngine();
 
-               $this->mode->setExecutor(Mode::INDEX);
-
                $this->runFrontend(
                        $this->container->create(IManagePersonalConfigValues::class),
                        $this->container->create(Page::class),
@@ -348,6 +346,8 @@ class App
                float $start_time,
                ServerRequestInterface $request
        ) {
+               $this->mode->setExecutor(Mode::INDEX);
+
                $httpInput  = new HTTPInputData($request->getServerParams());
                $serverVars = $request->getServerParams();
                $queryVars  = $request->getQueryParams();