X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=src%2FModel%2FProfile.php;h=8bb519448e32d18a2fd179f7fe881b0668ab86c4;hb=7d6b1264ec038bc9c3917bc933ba8d02bedadcbc;hp=f86fce9b21a61c9348e04955801d76ab6f64c853;hpb=b1a668a3ea805bc08f8fa02cca9b38083d5af9eb;p=friendica.git diff --git a/src/Model/Profile.php b/src/Model/Profile.php index f86fce9b21..8bb519448e 100644 --- a/src/Model/Profile.php +++ b/src/Model/Profile.php @@ -152,7 +152,7 @@ class Profile $a->set_template_engine(); // reset the template engine to the default in case the user's theme doesn't specify one - $theme_info_file = 'view/theme/' . current_theme() . '/theme.php'; + $theme_info_file = 'view/theme/' . $a->getCurrentTheme() . '/theme.php'; if (file_exists($theme_info_file)) { require_once $theme_info_file; } @@ -950,7 +950,7 @@ class Profile ]; } - if ((!$is_owner) && ((count($a->profile)) || (!$a->profile['hide-friends']))) { + if (!$is_owner && empty($a->profile['hide-friends'])) { $tabs[] = [ 'label' => L10n::t('Contacts'), 'url' => System::baseUrl() . '/viewcontacts/' . $nickname,