mirror of
https://github.com/friendica/friendica
synced 2025-04-21 23:50:18 +00:00
Merge pull request #7092 from MrPetovan/task/7047-theme-error-page
Add style to exception page
This commit is contained in:
commit
14d8c12130
6 changed files with 32 additions and 5 deletions
|
@ -52,14 +52,14 @@ class HTTPException
|
|||
$message = defaults($explanation, $e->getCode(), '');
|
||||
}
|
||||
|
||||
return ['$title' => $title, '$description' => $message];
|
||||
return ['$title' => $title, '$message' => $message, '$back' => L10n::t('Go back')];
|
||||
}
|
||||
|
||||
/**
|
||||
* Displays a bare message page with no theming at all.
|
||||
*
|
||||
* @param \Friendica\Network\HTTPException $e
|
||||
* @throws \Friendica\Network\HTTPException\InternalServerErrorException
|
||||
* @throws \Exception
|
||||
*/
|
||||
public static function rawContent(\Friendica\Network\HTTPException $e)
|
||||
{
|
||||
|
@ -78,7 +78,7 @@ class HTTPException
|
|||
*
|
||||
* @param \Friendica\Network\HTTPException $e
|
||||
* @return string
|
||||
* @throws \Friendica\Network\HTTPException\InternalServerErrorException
|
||||
* @throws \Exception
|
||||
*/
|
||||
public static function content(\Friendica\Network\HTTPException $e)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue