mirror of
https://github.com/friendica/friendica
synced 2025-04-25 09: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
|
@ -49,7 +49,7 @@ class Directory extends BaseModule
|
|||
throw new HTTPException\ForbiddenException(DI::l10n()->t('Public access denied.'));
|
||||
}
|
||||
|
||||
if (local_user()) {
|
||||
if (Session::getLocalUser()) {
|
||||
DI::page()['aside'] .= Widget::findPeople();
|
||||
DI::page()['aside'] .= Widget::follow();
|
||||
}
|
||||
|
@ -75,7 +75,7 @@ class Directory extends BaseModule
|
|||
DI::sysmsg()->addNotice(DI::l10n()->t('No entries (some entries may be hidden).'));
|
||||
} else {
|
||||
foreach ($profiles['entries'] as $entry) {
|
||||
$contact = Model\Contact::getByURLForUser($entry['url'], local_user());
|
||||
$contact = Model\Contact::getByURLForUser($entry['url'], Session::getLocalUser());
|
||||
if (!empty($contact)) {
|
||||
$entries[] = Contact::getContactTemplateVars($contact);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue