X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;ds=sidebyside;f=src%2FModule%2FInstall.php;h=54c10534ddeafd27b976fa178d674b26a56edbbe;hb=19e95ebdda9f52a5c2e024edbeb539edba8eba41;hp=b19e69a324c9d47505a6058be677c72b159ce3c6;hpb=9774c95b807eeae0a9f70ce6c75f3f20a5147673;p=friendica.git diff --git a/src/Module/Install.php b/src/Module/Install.php index b19e69a324..54c10534dd 100644 --- a/src/Module/Install.php +++ b/src/Module/Install.php @@ -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();