From: nupplaPhil Date: Sun, 2 Feb 2020 19:50:53 +0000 (+0100) Subject: Fix crepair links X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=8632c903276c44d575076ac3167e3bc7ea64bd31;p=friendica.git Fix crepair links --- diff --git a/src/Module/Contact.php b/src/Module/Contact.php index 7ce47b9cd7..020e3906a0 100644 --- a/src/Module/Contact.php +++ b/src/Module/Contact.php @@ -374,7 +374,7 @@ class Contact extends BaseModule if ($cmd === 'updateprofile' && ($orig_record['uid'] != 0)) { self::updateContactFromProbe($contact_id); - DI::baseUrl()->redirect('crepair/' . $contact_id); + DI::baseUrl()->redirect('contact/' . $contact_id . '/advanced/'); // NOTREACHED } @@ -910,7 +910,7 @@ class Contact extends BaseModule if (!empty($contact['uid'])) { $tabs[] = ['label' => DI::l10n()->t('Advanced'), - 'url' => 'crepair/' . $contact['id'], + 'url' => 'contact/' . $contact['id'] . '/advanced/', 'sel' => (($active_tab == 6) ? 'active' : ''), 'title' => DI::l10n()->t('Advanced Contact Settings'), 'id' => 'advanced-tab', diff --git a/view/theme/frio/templates/contact/advanced.tpl b/view/theme/frio/templates/contact/advanced.tpl new file mode 100644 index 0000000000..5c814e51ea --- /dev/null +++ b/view/theme/frio/templates/contact/advanced.tpl @@ -0,0 +1,56 @@ + +
+ {{include file="section_title.tpl"}} + + {{$tab_str nofilter}} + +
{{$warning nofilter}}

+
+ {{$info nofilter}}
+ +
+
+ +
+ + + +
+ {{if $update_profile}} + {{$udprofilenow}} + {{/if}} +
+ + {{include file="field_input.tpl" field=$name}} + + {{include file="field_input.tpl" field=$nick}} + + {{include file="field_input.tpl" field=$attag}} + + {{include file="field_input.tpl" field=$url}} + + {{include file="field_input.tpl" field=$alias}} + + {{include file="field_input.tpl" field=$request}} + + {{include file="field_input.tpl" field=$confirm}} + + {{include file="field_input.tpl" field=$notify}} + + {{include file="field_input.tpl" field=$poll}} + + {{include file="field_input.tpl" field=$photo}} + + + {{if $allow_remote_self eq 1}} +

{{$label_remote_self}}

+ {{include file="field_select.tpl" field=$remote_self}} + {{/if}} + +
+ +
+
+ +
+
diff --git a/view/theme/frio/templates/crepair.tpl b/view/theme/frio/templates/crepair.tpl deleted file mode 100644 index df49762001..0000000000 --- a/view/theme/frio/templates/crepair.tpl +++ /dev/null @@ -1,56 +0,0 @@ - -
- {{include file="section_title.tpl"}} - - {{$tab_str nofilter}} - -
{{$warning nofilter}}

-
- {{$info nofilter}}
- -
-
- -
- - - -
- {{if $update_profile}} - {{$udprofilenow}} - {{/if}} -
- - {{include file="field_input.tpl" field=$name}} - - {{include file="field_input.tpl" field=$nick}} - - {{include file="field_input.tpl" field=$attag}} - - {{include file="field_input.tpl" field=$url}} - - {{include file="field_input.tpl" field=$alias}} - - {{include file="field_input.tpl" field=$request}} - - {{include file="field_input.tpl" field=$confirm}} - - {{include file="field_input.tpl" field=$notify}} - - {{include file="field_input.tpl" field=$poll}} - - {{include file="field_input.tpl" field=$photo}} - - - {{if $allow_remote_self eq 1}} -

{{$label_remote_self}}

- {{include file="field_select.tpl" field=$remote_self}} - {{/if}} - -
- -
-
- -
-