aboutsummaryrefslogtreecommitdiffstats
path: root/mod/message.php
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2012-03-09 00:47:10 -0800
committerfriendica <info@friendica.com>2012-03-09 00:47:10 -0800
commit3878b58f0d19a60cb51b65e2c4b02ccb242ba73b (patch)
tree29b3fddf7b08a07815214856e40cbe7dc2261e5d /mod/message.php
parent312c17504515b0f6c77b2e59ef8569dbf8d048fa (diff)
downloadvolse-hubzilla-3878b58f0d19a60cb51b65e2c4b02ccb242ba73b.tar.gz
volse-hubzilla-3878b58f0d19a60cb51b65e2c4b02ccb242ba73b.tar.bz2
volse-hubzilla-3878b58f0d19a60cb51b65e2c4b02ccb242ba73b.zip
bug #324 - tinymce used for mail even if editplain being used.
Diffstat (limited to 'mod/message.php')
-rwxr-xr-xmod/message.php6
1 files changed, 6 insertions, 0 deletions
diff --git a/mod/message.php b/mod/message.php
index 4b494e906..91db5baef 100755
--- a/mod/message.php
+++ b/mod/message.php
@@ -129,10 +129,16 @@ function message_content(&$a) {
$o .= $header;
+ $plaintext = false;
+ if(intval(get_pconfig(local_user(),'system','plaintext')))
+ $plaintext = true;
+
+
$tpl = get_markup_template('msg-header.tpl');
$a->page['htmlhead'] .= replace_macros($tpl, array(
'$baseurl' => $a->get_baseurl(),
+ '$editselect' => (($plaintext) ? 'none' : '/(profile-jot-text|prvmail-text)/'),
'$nickname' => $a->user['nickname'],
'$linkurl' => t('Please enter a link URL:')
));