mirror of
https://github.com/friendica/friendica
synced 2025-04-27 23:10:12 +00:00
Many deprecated function calls are replaced
This commit is contained in:
parent
cfad5809ff
commit
60f5fd8188
28 changed files with 61 additions and 71 deletions
|
@ -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'];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue