X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=view%2Ftheme%2Fvier%2Ftheme.php;h=c1562983812416cab64d99939fbf78051582ee94;hb=458e26b00a6f762e16772fa8abac711c19182508;hp=13caae98e2b499360cf9568c7b21d22bad52895a;hpb=c52b8595e84fb2ea3b642b68586d9c9d35561f51;p=friendica.git diff --git a/view/theme/vier/theme.php b/view/theme/vier/theme.php index 13caae98e2..c156298381 100644 --- a/view/theme/vier/theme.php +++ b/view/theme/vier/theme.php @@ -21,13 +21,13 @@ use Friendica\Util\Strings; function vier_init(App $a) { - $a->theme_info['events_in_profile'] = false; + $a->setThemeInfoValue('events_in_profile', false); Renderer::setActiveTemplateEngine('smarty3'); $args = DI::args(); - if ($args->get(0) === 'profile' && $args->get(1) === ($a->user['nickname'] ?? '') || $args->get(0) === 'network' && local_user() + if ($args->get(0) === 'profile' && $args->get(1) === ($a->getLoggedInUserNickname() ?? '') || $args->get(0) === 'network' && local_user() ) { vier_community_info(); @@ -285,7 +285,7 @@ function vier_community_info() $r[] = ["photo" => "images/wordpress.png", "name" => "Wordpress"]; } - if (function_exists("imap_open") && !DI::config()->get("system", "imap_disabled") && !DI::config()->get("system", "dfrn_only")) { + if (function_exists("imap_open") && !DI::config()->get("system", "imap_disabled")) { $r[] = ["photo" => "images/mail.png", "name" => "E-Mail"]; }