mirror of
https://github.com/friendica/friendica
synced 2024-12-23 04:00:15 +00:00
Revert "Catch HTTPExceptions in App::runFrontend()"
This reverts commit 58bd75f8f3
.
This commit is contained in:
parent
07d358adc1
commit
75daf96590
1 changed files with 50 additions and 61 deletions
11
src/App.php
11
src/App.php
|
@ -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.
|
||||
|
|
Loading…
Reference in a new issue