]> git.mxchange.org Git - friendica.git/blobdiff - mod/contacts.php
diabook-themes: minor bugfixes
[friendica.git] / mod / contacts.php
index 483655a6cb691706671979b15fab365874ca73b1..9d29d4bd1438ee091407a83bcabcb8f33a37d788 100644 (file)
@@ -232,8 +232,14 @@ function contacts_content(&$a) {
                $contact_id = $a->data['contact']['id'];
                $contact = $a->data['contact'];
 
-               $tpl = get_markup_template('contact_head.tpl');
-               $a->page['htmlhead'] .= replace_macros($tpl, array('$baseurl' => $a->get_baseurl(true)));
+               $editselect = 'exact';
+               if(intval(get_pconfig(local_user(),'system','plaintext')))
+                       $editselect = 'none';
+
+               $a->page['htmlhead'] .= replace_macros(get_markup_template('contact_head.tpl'), array(
+                       '$baseurl' => $a->get_baseurl(true),
+                       '$editselect' => $editselect,
+               ));
 
                require_once('include/contact_selectors.php');