]> git.mxchange.org Git - friendica.git/blobdiff - src/App.php
add opensocial as location for db-based execution
[friendica.git] / src / App.php
index a48e21571d85f86a8dd0c0bf9bb675fb56053716..db3e644c2fc4391a6716c3cfb184b8b6fe29d694 100644 (file)
@@ -706,11 +706,13 @@ class App
                        $timestamp = microtime(true);
                        $response = $module->run($httpException, $input);
                        $this->profiler->set(microtime(true) - $timestamp, 'content');
+
+                       // Wrapping HTML responses in the theme template
                        if ($response->getHeaderLine(ICanCreateResponses::X_HEADER) === ICanCreateResponses::TYPE_HTML) {
-                               $page->run($this, $this->baseURL, $this->args, $this->mode, $response, $this->l10n, $this->profiler, $this->config, $pconfig, $nav, $this->session->getLocalUserId());
-                       } else {
-                               $page->exit($response);
+                               $response = $page->run($this, $this->baseURL, $this->args, $this->mode, $response, $this->l10n, $this->profiler, $this->config, $pconfig, $nav, $this->session->getLocalUserId());
                        }
+
+                       $page->exit($response);
                } catch (HTTPException $e) {
                        $httpException->rawContent($e);
                }