From 9d720f69aad34d5c6bc4806a1584705b7a80737a Mon Sep 17 00:00:00 2001 From: rabuzarus <> Date: Mon, 26 Oct 2015 13:36:01 +0100 Subject: [PATCH] template-rework: don't show the findpeople_widget on contact edit page --- mod/contacts.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/mod/contacts.php b/mod/contacts.php index 3ace870904..7f01c61c66 100644 --- a/mod/contacts.php +++ b/mod/contacts.php @@ -40,6 +40,7 @@ function contacts_init(&$a) { '$photo' => $a->data['contact']['photo'], '$url' => ($a->data['contact']['network'] == NETWORK_DFRN) ? $a->get_baseurl()."/redir/".$a->data['contact']['id'] : $a->data['contact']['url'] )); + $finpeople_widget = ''; $follow_widget = ''; $networks_widget = ''; } @@ -50,9 +51,10 @@ function contacts_init(&$a) { $follow_widget = follow_widget($_GET['add']); else $follow_widget = follow_widget(); + + $findpeople_widget .= findpeople_widget(); } - $findpeople_widget .= findpeople_widget(); $groups_widget .= group_side('contacts','group',false,0,$contact_id); $a->page['aside'] .= replace_macros(get_markup_template("contacts-widget-sidebar.tpl"),array(