mirror of
https://github.com/friendica/friendica
synced 2025-04-28 01:10:12 +00:00
Inherit ApiResponse
from Response
This commit is contained in:
parent
561aba18e3
commit
537b74f307
46 changed files with 326 additions and 277 deletions
|
@ -702,7 +702,11 @@ class App
|
|||
|
||||
// Let the module run it's internal process (init, get, post, ...)
|
||||
$response = $module->run($_POST, $_REQUEST);
|
||||
$page->run($this, $this->baseURL, $this->args, $this->mode, $response, $this->l10n, $this->profiler, $this->config, $pconfig);
|
||||
if ($response->getType() === $response::TYPE_HTML) {
|
||||
$page->run($this, $this->baseURL, $this->args, $this->mode, $response, $this->l10n, $this->profiler, $this->config, $pconfig);
|
||||
} else {
|
||||
$page->exit($response);
|
||||
}
|
||||
} catch (HTTPException $e) {
|
||||
(new ModuleHTTPException())->rawContent($e);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue