diff options
author | friendica <info@friendica.com> | 2014-05-29 20:09:21 -0700 |
---|---|---|
committer | friendica <info@friendica.com> | 2014-05-29 20:09:21 -0700 |
commit | 22ed5b1d03314d2bc7ff41b4724526fe00472904 (patch) | |
tree | 6107189095449666c8bbfc46422c92c0440abbe7 /mod/events.php | |
parent | 6e0cc25a90fa65ff49317d1fa3c4aff49a4d2d6a (diff) | |
download | volse-hubzilla-22ed5b1d03314d2bc7ff41b4724526fe00472904.tar.gz volse-hubzilla-22ed5b1d03314d2bc7ff41b4724526fe00472904.tar.bz2 volse-hubzilla-22ed5b1d03314d2bc7ff41b4724526fe00472904.zip |
newevent: front end functions
Diffstat (limited to 'mod/events.php')
-rwxr-xr-x | mod/events.php | 16 |
1 files changed, 13 insertions, 3 deletions
diff --git a/mod/events.php b/mod/events.php index 126460e9a..fa45c2c15 100755 --- a/mod/events.php +++ b/mod/events.php @@ -159,10 +159,11 @@ function events_content(&$a) { } - $plaintext = true; + $plaintext = true; + + if(feature_enabled(local_user(),'richtext')) + $plaintext = false; - if(feature_enabled(local_user(),'richtext')) - $plaintext = false; $htpl = get_markup_template('event_head.tpl'); @@ -190,6 +191,10 @@ function events_content(&$a) { $mode = 'edit'; $event_id = argv(2); } + if(argc() > 2 && argv(1) === 'add') { + $mode = 'add'; + $item_id = intval(argv(2)); + } if(argv(1) === 'new') { $mode = 'new'; $event_id = ''; @@ -201,6 +206,11 @@ function events_content(&$a) { } } + if($mode === 'add') { + event_addtocal($item_id,local_user()); + killme(); + } + if($mode == 'view') { |