From 43c0e689f97848d9979574e8eaa843c2bd44a0dc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Roland=20H=C3=A4der?= Date: Thu, 23 Jun 2022 07:42:22 +0200 Subject: [PATCH] Wrong type-hint + renamed $b -> $body --- impressum/impressum.php | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/impressum/impressum.php b/impressum/impressum.php index 40029632..47e44ef7 100644 --- a/impressum/impressum.php +++ b/impressum/impressum.php @@ -40,14 +40,14 @@ function obfuscate_email (string $s): string return $s; } -function impressum_footer(App $a, array &$b) +function impressum_footer(App $a, string &$body) { $text = ProxyUtils::proxifyHtml(BBCode::convert(DI::config()->get('impressum','footer_text'))); if (! $text == '') { DI::page()['htmlhead'] .= ''; - $b .= '
'; - $b .= ''; + $body .= '
'; + $body .= ''; } } @@ -56,9 +56,9 @@ function impressum_load_config(App $a, ConfigFileLoader $loader) $a->getConfigCache()->load($loader->loadAddonConfig('impressum')); } -function impressum_show(App $a, array &$b) +function impressum_show(App $a, array &$body) { - $b .= '

' . DI::l10n()->t('Impressum') . '

'; + $body .= '

' . DI::l10n()->t('Impressum') . '

'; $owner = DI::config()->get('impressum', 'owner'); $owner_profile = DI::config()->get('impressum', 'ownerprofile'); $postal = ProxyUtils::proxifyHtml(BBCode::convert(DI::config()->get('impressum', 'postal'))); @@ -73,20 +73,20 @@ function impressum_show(App $a, array &$b) } if (strlen($email)) { - $b .= '

' . DI::l10n()->t('Site Owner').': ' . $tmp .'
' . DI::l10n()->t('Email Address') . ': ' . $email . '

'; + $body .= '

' . DI::l10n()->t('Site Owner').': ' . $tmp .'
' . DI::l10n()->t('Email Address') . ': ' . $email . '

'; } else { - $b .= '

' . DI::l10n()->t('Site Owner').': ' . $tmp .'

'; + $body .= '

' . DI::l10n()->t('Site Owner').': ' . $tmp .'

'; } if (strlen($postal)) { - $b .= '

' . DI::l10n()->t('Postal Address') . '
' . $postal . '

'; + $body .= '

' . DI::l10n()->t('Postal Address') . '
' . $postal . '

'; } if (strlen($notes)) { - $b .= '

' . $notes . '

'; + $body .= '

' . $notes . '

'; } } else { - $b .= '

' . DI::l10n()->t('The impressum addon needs to be configured!
Please add at least the owner variable to your config file. For other variables please refer to the README file of the addon.') . '

'; + $body .= '

' . DI::l10n()->t('The impressum addon needs to be configured!
Please add at least the owner variable to your config file. For other variables please refer to the README file of the addon.') . '

'; } }