]> git.mxchange.org Git - friendica.git/blobdiff - src/App.php
Move theme determination after full module run
[friendica.git] / src / App.php
index c7305c8c1dd40e0abcba0ac36df862040fb41449..1f623c0cfeb8565c5101b8e80b3a203376004e73 100644 (file)
@@ -587,7 +587,11 @@ class App
         *
         * This probably should change to limit the size of this monster method.
         *
-        * @param App\Module $module The determined module
+        * @param App\Module     $module The determined module
+        * @param App\Router     $router
+        * @param PConfiguration $pconfig
+        * @throws HTTPException\InternalServerErrorException
+        * @throws \ImagickException
         */
        public function runFrontend(App\Module $module, App\Router $router, PConfiguration $pconfig)
        {
@@ -733,8 +737,7 @@ class App
                        $module = $module->determineClass($this->args, $router, $this->config);
 
                        // Let the module run it's internal process (init, get, post, ...)
-                       $module->run($this->l10n, $this, $this->logger, $this->getCurrentTheme(), $_SERVER, $_POST);
-
+                       $module->run($this->l10n, $this, $this->logger, $_SERVER, $_POST);
                } catch (HTTPException $e) {
                        ModuleHTTPException::rawContent($e);
                }