mirror of
https://github.com/friendica/friendica
synced 2025-04-19 13:10:10 +00:00
Replace System::httpExit() by HTTPException throwing
This commit is contained in:
parent
358baa9f62
commit
41f781c52a
39 changed files with 116 additions and 140 deletions
|
@ -51,7 +51,7 @@ class Install extends BaseModule
|
|||
$a = self::getApp();
|
||||
|
||||
if (!$a->getMode()->isInstall()) {
|
||||
Core\System::httpExit(403);
|
||||
throw new \Friendica\Network\HTTPException\ForbiddenException();
|
||||
}
|
||||
|
||||
// route: install/testrwrite
|
||||
|
@ -59,7 +59,7 @@ class Install extends BaseModule
|
|||
// @TODO: Replace with parameter from router
|
||||
if ($a->getArgumentValue(1, '') == 'testrewrite') {
|
||||
// Status Code 204 means that it worked without content
|
||||
Core\System::httpExit(204);
|
||||
throw new \Friendica\Network\HTTPException\NoContentException();
|
||||
}
|
||||
|
||||
self::$installer = new Core\Installer();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue