From b52ba7962031576ee73485adc16bf11cc121877b Mon Sep 17 00:00:00 2001 From: Michael Date: Sun, 22 Nov 2020 08:15:17 +0000 Subject: [PATCH] Contacts can now be updated from every theme --- src/Module/Contact.php | 2 +- src/Module/Contact/Advanced.php | 2 -- view/templates/contact/advanced.tpl | 6 ------ view/templates/contact_edit.tpl | 1 + view/theme/frio/templates/contact/advanced.tpl | 6 ------ view/theme/vier/templates/contact_edit.tpl | 1 + 6 files changed, 3 insertions(+), 15 deletions(-) diff --git a/src/Module/Contact.php b/src/Module/Contact.php index 08256bcf56..4642401a28 100644 --- a/src/Module/Contact.php +++ b/src/Module/Contact.php @@ -1139,7 +1139,7 @@ class Contact extends BaseModule ]; } - if (in_array($contact['network'], Protocol::FEDERATED)) { + if (in_array($contact['network'], Protocol::NATIVE_SUPPORT)) { $contact_actions['updateprofile'] = [ 'label' => DI::l10n()->t('Refetch contact data'), 'url' => 'contact/' . $contact['id'] . '/updateprofile', diff --git a/src/Module/Contact/Advanced.php b/src/Module/Contact/Advanced.php index 91536a8889..b37a9affc9 100644 --- a/src/Module/Contact/Advanced.php +++ b/src/Module/Contact/Advanced.php @@ -128,8 +128,6 @@ class Advanced extends BaseModule '$info' => $info, '$returnaddr' => $returnaddr, '$return' => DI::l10n()->t('Return to contact editor'), - '$update_profile' => in_array($contact['network'], Protocol::FEDERATED), - '$udprofilenow' => DI::l10n()->t('Refetch contact data'), '$contact_id' => $contact['id'], '$lbl_submit' => DI::l10n()->t('Submit'), diff --git a/view/templates/contact/advanced.tpl b/view/templates/contact/advanced.tpl index 487f27a0eb..004de53c15 100644 --- a/view/templates/contact/advanced.tpl +++ b/view/templates/contact/advanced.tpl @@ -13,12 +13,6 @@ -
- {{if $update_profile}} - {{$udprofilenow}} - {{/if}} -
- {{include file="field_input.tpl" field=$name}} {{include file="field_input.tpl" field=$nick}} diff --git a/view/templates/contact_edit.tpl b/view/templates/contact_edit.tpl index 9d93494a1b..c98b44e439 100644 --- a/view/templates/contact_edit.tpl +++ b/view/templates/contact_edit.tpl @@ -17,6 +17,7 @@