mirror of
https://github.com/friendica/friendica
synced 2025-04-22 01:50:11 +00:00
old boot.php functions replaced in src/module
This commit is contained in:
parent
ba9f145ef7
commit
d2da2492b7
21 changed files with 103 additions and 86 deletions
|
@ -36,7 +36,7 @@ class HCard extends BaseModule
|
|||
{
|
||||
protected function content(array $request = []): string
|
||||
{
|
||||
if ((local_user()) && ($this->parameters['action'] ?? '') === 'view') {
|
||||
if ((Session::getLocalUser()) && ($this->parameters['action'] ?? '') === 'view') {
|
||||
// A logged in user views a profile of a user
|
||||
$nickname = DI::app()->getLoggedInUserNickname();
|
||||
} elseif (empty($this->parameters['action'])) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue