]> git.mxchange.org Git - friendica.git/blobdiff - src/App.php
Introduce `Response` for Modules to create a testable way for module responses
[friendica.git] / src / App.php
index 14980896efe7e22b1d25e28a4c418d3ab23b5fcd..f3f7429db0651014ebe52aa4f6942024b81c7ddc 100644 (file)
@@ -701,8 +701,8 @@ class App
                        }
 
                        // Let the module run it's internal process (init, get, post, ...)
-                       $content = $module->run($_POST, $_REQUEST);
-                       $page->run($this, $this->baseURL, $this->args, $this->mode, $content, $this->l10n, $this->profiler, $this->config, $pconfig);
+                       $response = $module->run($_POST, $_REQUEST);
+                       $page->run($this, $this->baseURL, $this->args, $this->mode, $response, $this->l10n, $this->profiler, $this->config, $pconfig);
                } catch (HTTPException $e) {
                        (new ModuleHTTPException())->rawContent($e);
                }