]> git.mxchange.org Git - friendica.git/commitdiff
template-rework: don't show the findpeople_widget on contact edit page
authorrabuzarus <>
Mon, 26 Oct 2015 12:36:01 +0000 (13:36 +0100)
committerrabuzarus <>
Mon, 26 Oct 2015 12:36:01 +0000 (13:36 +0100)
mod/contacts.php

index 3ace8709049f1f393eb67a464f27aa610c7ad38d..7f01c61c66f3134cee59ff0dfca814d7c7de3f2f 100644 (file)
@@ -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(