diff options
author | marijus <mario@mariovavti.com> | 2014-05-09 07:39:27 +0200 |
---|---|---|
committer | marijus <mario@mariovavti.com> | 2014-05-09 07:39:27 +0200 |
commit | 56eb9e75ccad49c8fcbd569b097c2ea85e7d258f (patch) | |
tree | 87411ce648195b34f0a02ed49d60b007a6a8470d /mod/events.php | |
parent | 6e397240a3f1a1bb52ef5d9bd3929a6770ac8222 (diff) | |
parent | 831b18cf283cd52fd1b01d6c6c4648b8351985a7 (diff) | |
download | volse-hubzilla-56eb9e75ccad49c8fcbd569b097c2ea85e7d258f.tar.gz volse-hubzilla-56eb9e75ccad49c8fcbd569b097c2ea85e7d258f.tar.bz2 volse-hubzilla-56eb9e75ccad49c8fcbd569b097c2ea85e7d258f.zip |
Merge branch 'master' of https://github.com/friendica/red
Diffstat (limited to 'mod/events.php')
-rwxr-xr-x | mod/events.php | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/mod/events.php b/mod/events.php index d243f61ba..8bf8c6ce1 100755 --- a/mod/events.php +++ b/mod/events.php @@ -158,8 +158,17 @@ function events_content(&$a) { } + $plaintext = true; + + if(feature_enabled(local_user(),'richtext')) + $plaintext = false; + + $htpl = get_markup_template('event_head.tpl'); - $a->page['htmlhead'] .= replace_macros($htpl,array('$baseurl' => $a->get_baseurl())); + $a->page['htmlhead'] .= replace_macros($htpl,array( + '$baseurl' => $a->get_baseurl(), + '$editselect' => (($plaintext) ? 'none' : 'textareas') + )); $o =""; // tabs @@ -400,7 +409,6 @@ function events_content(&$a) { if($orig_event['event_xchan']) $sh_checked .= ' disabled="disabled" '; - $tpl = get_markup_template('event_form.tpl'); $sdt = ((x($orig_event)) ? $orig_event['start'] : 'now'); $fdt = ((x($orig_event)) ? $orig_event['finish'] : 'now'); @@ -439,6 +447,7 @@ function events_content(&$a) { 'deny_gid' => $channel['channel_deny_gid'] ); + $tpl = get_markup_template('event_form.tpl'); $o .= replace_macros($tpl,array( |