X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=mod%2Fwallmessage.php;h=b8859badd3d30504f6ea7c57f914e3a9be31ad5d;hb=77ed71e2e07ebbea9295308ba02fbc7e75ff927d;hp=24d21883b938ab68807f118400b3baeff32f0daa;hpb=0e7f6d14174cb349d3a1918aefa5ca897faea8d5;p=friendica.git diff --git a/mod/wallmessage.php b/mod/wallmessage.php index 24d21883b9..b8859badd3 100644 --- a/mod/wallmessage.php +++ b/mod/wallmessage.php @@ -115,10 +115,14 @@ function wallmessage_content(&$a) { + $editselect = 'none'; + if( feature_enabled(local_user(), 'richtext') ) + $editselect = '/(profile-jot-text|prvmail-text)/'; + $tpl = get_markup_template('wallmsg-header.tpl'); $a->page['htmlhead'] .= replace_macros($tpl, array( '$baseurl' => $a->get_baseurl(true), - '$editselect' => '/(profile-jot-text|prvmail-text)/', + '$editselect' => $editselect, '$nickname' => $user['nickname'], '$linkurl' => t('Please enter a link URL:') )); @@ -126,7 +130,7 @@ function wallmessage_content(&$a) { $tpl = get_markup_template('wallmsg-end.tpl'); $a->page['end'] .= replace_macros($tpl, array( '$baseurl' => $a->get_baseurl(true), - '$editselect' => '/(profile-jot-text|prvmail-text)/', + '$editselect' => $editselect, '$nickname' => $user['nickname'], '$linkurl' => t('Please enter a link URL:') ));