aboutsummaryrefslogtreecommitdiffstats
path: root/mod/contacts.php
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2012-04-10 18:08:06 -0700
committerfriendica <info@friendica.com>2012-04-10 18:08:06 -0700
commited608694cec2ea901f474f432d99b33821b276aa (patch)
tree3bfedeabbebb0dc8dc14f80d42c4cea530bc7a69 /mod/contacts.php
parent18e225b05167261429df0e8dc4e6acf5cefd6c2a (diff)
downloadvolse-hubzilla-ed608694cec2ea901f474f432d99b33821b276aa.tar.gz
volse-hubzilla-ed608694cec2ea901f474f432d99b33821b276aa.tar.bz2
volse-hubzilla-ed608694cec2ea901f474f432d99b33821b276aa.zip
make editplain work everywhere
Diffstat (limited to 'mod/contacts.php')
-rw-r--r--mod/contacts.php10
1 files changed, 8 insertions, 2 deletions
diff --git a/mod/contacts.php b/mod/contacts.php
index 483655a6c..9d29d4bd1 100644
--- a/mod/contacts.php
+++ b/mod/contacts.php
@@ -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');