Many deprecated function calls are replaced

This commit is contained in:
Michael 2024-05-13 16:19:19 +00:00
parent cfad5809ff
commit 60f5fd8188
28 changed files with 61 additions and 71 deletions

View file

@ -37,7 +37,7 @@ class HCard extends BaseModule
{
if (DI::userSession()->getLocalUserId() && ($this->parameters['action'] ?? '') === 'view') {
// A logged in user views a profile of a user
$nickname = DI::app()->getLoggedInUserNickname();
$nickname = DI::userSession()->getLocalUserNickname();
} elseif (empty($this->parameters['action'])) {
// Show the profile hCard
$nickname = $this->parameters['profile'];