Replace System::httpExit() by HTTPException throwing
This commit is contained in:
@@ -62,11 +62,7 @@ function help_content(App $a)
|
||||
}
|
||||
|
||||
if (!strlen($text)) {
|
||||
header($_SERVER["SERVER_PROTOCOL"] . ' 404 ' . L10n::t('Not Found'));
|
||||
$tpl = Renderer::getMarkupTemplate("404.tpl");
|
||||
return Renderer::replaceMacros($tpl, [
|
||||
'$message' => L10n::t('Page not found.')
|
||||
]);
|
||||
throw new \Friendica\Network\HTTPException\NotFoundException();
|
||||
}
|
||||
|
||||
$html = Markdown::convert($text, false);
|
||||
|
||||
Reference in New Issue
Block a user