Merge pull request #7092 from MrPetovan/task/7047-theme-error-page

Add style to exception page
This commit is contained in:
Philipp 2019-05-06 07:33:42 +02:00 committed by GitHub
commit 14d8c12130
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
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)
{