mirror of
https://github.com/friendica/friendica
synced 2025-04-19 10:30:10 +00:00
Move ProfileField::selectByContactId() and ProfileField::selectByUserId()
This commit is contained in:
parent
a9981c792e
commit
6f692b857b
5 changed files with 49 additions and 44 deletions
|
@ -213,9 +213,9 @@ class Profile extends BaseProfile
|
|||
$contact_id = $view_as_contact_id ?: $remote_contact_id ?: 0;
|
||||
|
||||
if ($is_owner && $contact_id === 0) {
|
||||
$profile_fields = DI::profileField()->selectByUserId($profile['uid']);
|
||||
$profile_fields = DI::profileFieldNew()->selectByUserId($profile['uid']);
|
||||
} else {
|
||||
$profile_fields = DI::profileField()->selectByContactId($contact_id, $profile['uid']);
|
||||
$profile_fields = DI::profileFieldNew()->selectByContactId($contact_id, $profile['uid']);
|
||||
}
|
||||
|
||||
foreach ($profile_fields as $profile_field) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue