mirror of
https://github.com/friendica/friendica
synced 2025-04-27 20:30:13 +00:00
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
|
@ -109,6 +109,8 @@ interface IHandleUserSessions extends IHandleSessions
|
|||
|
||||
/**
|
||||
* Set the session variable that contains the contact IDs for the visitor's contact URL
|
||||
*
|
||||
* @param string $my_url
|
||||
*/
|
||||
public function setVisitorsContacts();
|
||||
public function setVisitorsContacts(string $my_url);
|
||||
}
|
||||
|
|
|
@ -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