- added type-hint + intval() (@MrPetovan)
- also changed `if (!$foo == '')` to `if ($foo != '')`
- added some spaces for better readability
This commit is contained in:
Roland Häder 2022-06-24 23:34:04 +02:00
parent 3ab46781b1
commit 02d4a560a1
No known key found for this signature in database
GPG key ID: C82EDE5DDFA0BA77
2 changed files with 12 additions and 13 deletions

View file

@ -47,10 +47,10 @@ function impressum_footer(App $a, string &$body)
{
$text = ProxyUtils::proxifyHtml(BBCode::convert(DI::config()->get('impressum','footer_text')));
if (! $text == '') {
DI::page()['htmlhead'] .= '<link rel="stylesheet" type="text/css" href="'.DI::baseUrl()->get().'/addon/impressum/impressum.css" media="all" />';
if ($text != '') {
DI::page()['htmlhead'] .= '<link rel="stylesheet" type="text/css" href="' . DI::baseUrl()->get() . '/addon/impressum/impressum.css" media="all" />';
$body .= '<div class="clear"></div>';
$body .= '<div id="impressum_footer">'.$text.'</div>';
$body .= '<div id="impressum_footer">' . $text . '</div>';
}
}