Revert "Catch HTTPExceptions in App::runFrontend()"

This reverts commit 58bd75f8f35f89fc275d5cd8e3ef40b9b18cb149.
This commit is contained in:
fabrixxm 2018-11-21 15:13:24 +01:00 committed by Hypolite Petovan
parent 07d358adc1
commit 75daf96590

View file

@ -9,7 +9,6 @@ use DOMDocument;
use DOMXPath;
use Exception;
use Friendica\Database\DBA;
use Friendica\Network\HTTPException;
use Friendica\Network\HTTPException\InternalServerErrorException;
/**
@ -1719,8 +1718,6 @@ class App
}
}
// Initialize module that can set the current theme in the init() method, either directly or via App->profile_uid
try {
$content = '';
// Initialize module that can set the current theme in the init() method, either directly or via App->profile_uid
@ -1777,14 +1774,6 @@ class App
}
$this->page['content'] .= $content;
} catch (HTTPException $e) {
header($_SERVER["SERVER_PROTOCOL"] . " " . $e->httpcode . " " . $e->httpdesc , true, $e->httpcode);
$error = ($e->getMessage() !== "" ? $e->getMessage() : $e->httpdesc);
$tpl = Core\Renderer::getMarkupTemplate("404.tpl");
$this->page['content'] = Core\Renderer::replaceMacros($tpl, [
'$message' => $error
]);
}
/* Create the page head after setting the language
* and getting any auth credentials.