Add explicit parameter to IHandleUserSession->setvisitorContacts
- Convert some remaining $_SESSION references to object calls - Address part of https://github.com/friendica/friendica/issues/12486#issuecomment-1428489772
This commit is contained in:
parent
2fdf39e8b8
commit
b268fa60e7
4 changed files with 18 additions and 12 deletions
|
@ -140,9 +140,9 @@ class UserSession implements IHandleUserSessions
|
|||
}
|
||||
|
||||
/** {@inheritDoc} */
|
||||
public function setVisitorsContacts()
|
||||
public function setVisitorsContacts(string $my_url)
|
||||
{
|
||||
$this->session->set('remote', Contact::getVisitorByUrl($this->session->get('my_url')));
|
||||
$this->session->set('remote', Contact::getVisitorByUrl($my_url));
|
||||
}
|
||||
|
||||
/** {@inheritDoc} */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue