Add style to exception page

This commit is contained in:
Hypolite Petovan 2019-05-04 21:54:05 -04:00
parent 41401bb18d
commit c969635bbc
6 changed files with 32 additions and 5 deletions

View file

@ -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)
{