Update view/theme/frio/theme.php

Co-authored-by: Hypolite Petovan <hypolite@mrpetovan.com>
2022.09-rc
Michael Vogel 2020-08-05 05:39:00 +02:00 zatwierdzone przez GitHub
rodzic f1380e6af4
commit 0224bc8367
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: 4AEE18F83AFDEB23
1 zmienionych plików z 1 dodań i 1 usunięć

Wyświetl plik

@ -195,7 +195,7 @@ function frio_remote_nav($a, &$nav)
// this isn't optimal because the contact query will be done now twice
$fields = ['id', 'url', 'avatar', 'micro', 'name', 'nick', 'baseurl'];
if (local_user() && !empty($a->user['uid'])) {
$remoteUser = DBA::selectFirst('contact', $fields, ['uid' => $a->user['uid'], 'self' => true]);
$remoteUser = Contact::selectFirst($fields, ['uid' => $a->user['uid'], 'self' => true]);
} elseif (!local_user() && remote_user()) {
$remoteUser = Contact::getById(remote_user(), $fields);
$nav['remote'] = DI::l10n()->t('Guest');