mirror of
https://github.com/friendica/friendica
synced 2025-04-25 23:10:12 +00:00
old boot.php functions replaced in src/module (3)
This commit is contained in:
parent
83390d4b00
commit
ae6d67ed1f
22 changed files with 158 additions and 147 deletions
|
@ -66,7 +66,7 @@ class Advanced extends BaseModule
|
|||
{
|
||||
$cid = $this->parameters['id'];
|
||||
|
||||
$contact = Model\Contact::selectFirst([], ['id' => $cid, 'uid' => local_user()]);
|
||||
$contact = Model\Contact::selectFirst([], ['id' => $cid, 'uid' => Session::getLocalUser()]);
|
||||
if (empty($contact)) {
|
||||
throw new BadRequestException($this->t('Contact not found.'));
|
||||
}
|
||||
|
@ -87,7 +87,7 @@ class Advanced extends BaseModule
|
|||
'nurl' => $nurl,
|
||||
'poll' => $poll,
|
||||
],
|
||||
['id' => $contact['id'], 'uid' => local_user()]
|
||||
['id' => $contact['id'], 'uid' => Session::getLocalUser()]
|
||||
);
|
||||
|
||||
if ($photo) {
|
||||
|
@ -105,7 +105,7 @@ class Advanced extends BaseModule
|
|||
{
|
||||
$cid = $this->parameters['id'];
|
||||
|
||||
$contact = Model\Contact::selectFirst([], ['id' => $cid, 'uid' => local_user()]);
|
||||
$contact = Model\Contact::selectFirst([], ['id' => $cid, 'uid' => Session::getLocalUser()]);
|
||||
if (empty($contact)) {
|
||||
throw new BadRequestException($this->t('Contact not found.'));
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue