]> git.mxchange.org Git - friendica.git/blobdiff - src/Module/NodeInfo.php
Merge pull request #7435 from annando/select-to-array
[friendica.git] / src / Module / NodeInfo.php
index c8d75b8e16f0ffa45a7d0e971a33465217e554c5..3261ef690241b33ddbd47696fb2265c11a1b2a0b 100644 (file)
@@ -18,7 +18,7 @@ class NodeInfo extends BaseModule
                $config = self::getApp()->getConfig();
 
                if (!$config->get('system', 'nodeinfo')) {
-                       System::httpExit(404);
+                       throw new \Friendica\Network\HTTPException\NotFoundException();
                }
        }
 
@@ -41,14 +41,14 @@ class NodeInfo extends BaseModule
         *
         * @param App $app
         *
-        * @throws \Friendica\Network\HTTPException\InternalServerErrorException
+        * @throws \Friendica\Network\HTTPException\NotFoundException
         */
        private static function printWellKnown(App $app)
        {
                $config = $app->getConfig();
 
                if (!$config->get('system', 'nodeinfo')) {
-                       System::httpExit(404);
+                       throw new \Friendica\Network\HTTPException\NotFoundException();
                }
 
                $nodeinfo = [