old boot.php functions replaced in src/module (3)

This commit is contained in:
Michael 2022-10-19 04:40:06 +00:00 committed by Hypolite Petovan
parent 83390d4b00
commit ae6d67ed1f
22 changed files with 158 additions and 147 deletions

View file

@ -56,7 +56,7 @@ class Common extends BaseProfile
throw new HTTPException\ForbiddenException(DI::l10n()->t('Permission denied.'));
}
$displayCommonTab = Session::isAuthenticated() && $profile['uid'] != local_user();
$displayCommonTab = Session::isAuthenticated() && $profile['uid'] != Session::getLocalUser();
if (!$displayCommonTab) {
$a->redirect('profile/' . $nickname . '/contacts');