diff options
author | Mario Vavti <mario@mariovavti.com> | 2019-04-19 19:06:01 +0200 |
---|---|---|
committer | Mario Vavti <mario@mariovavti.com> | 2019-04-19 19:06:01 +0200 |
commit | cb2d706fa1118cf2bd55009f99186d65dfee5a2d (patch) | |
tree | c5191fae06c1e131450f71676e9c0a4237776114 /Zotlabs/Module/Channel_calendar.php | |
parent | 2bd5ae361782d9c4a9bdfc1f037844d52d1fd502 (diff) | |
download | volse-hubzilla-cb2d706fa1118cf2bd55009f99186d65dfee5a2d.tar.gz volse-hubzilla-cb2d706fa1118cf2bd55009f99186d65dfee5a2d.tar.bz2 volse-hubzilla-cb2d706fa1118cf2bd55009f99186d65dfee5a2d.zip |
provide location and description information
Diffstat (limited to 'Zotlabs/Module/Channel_calendar.php')
-rw-r--r-- | Zotlabs/Module/Channel_calendar.php | 16 |
1 files changed, 11 insertions, 5 deletions
diff --git a/Zotlabs/Module/Channel_calendar.php b/Zotlabs/Module/Channel_calendar.php index 7518a4d9b..6aada575a 100644 --- a/Zotlabs/Module/Channel_calendar.php +++ b/Zotlabs/Module/Channel_calendar.php @@ -39,7 +39,7 @@ class Channel_calendar extends \Zotlabs\Web\Controller { $start_text = escape_tags($_REQUEST['dtstart']); $finish_text = escape_tags($_REQUEST['dtend']); - + $adjust = intval($_POST['adjust']); $nofinish = intval($_POST['nofinish']); @@ -60,8 +60,7 @@ class Channel_calendar extends \Zotlabs\Web\Controller { else { $start = sprintf('%d-%d-%d %d:%d:0',$startyear,$startmonth,$startday,$starthour,$startminute); } - - + if($finish_text) { $finish = $finish_text; } @@ -74,6 +73,7 @@ class Channel_calendar extends \Zotlabs\Web\Controller { } + if($adjust) { $start = datetime_convert($tz,'UTC',$start); if(! $nofinish) @@ -84,18 +84,20 @@ class Channel_calendar extends \Zotlabs\Web\Controller { if(! $nofinish) $finish = datetime_convert('UTC','UTC',$finish); } + + // Don't allow the event to finish before it begins. // It won't hurt anything, but somebody will file a bug report // and we'll waste a bunch of time responding to it. Time that // could've been spent doing something else. - + $summary = escape_tags(trim($_POST['summary'])); $desc = escape_tags(trim($_POST['desc'])); $location = escape_tags(trim($_POST['location'])); $type = escape_tags(trim($_POST['type'])); - + require_once('include/text.php'); linkify_tags($desc, local_channel()); linkify_tags($location, local_channel()); @@ -558,11 +560,15 @@ class Channel_calendar extends \Zotlabs\Web\Controller { 'j' => $j, 'd' => $d, 'is_editable' => $edit ? true : false, + 'is_first'=>$is_first, 'item'=>$rr, 'html'=>$html, 'plink' => array($rr['plink'],t('Link to Source'),'',''), + 'description' => $rr['description'], + 'location' => $rr['location'], + 'allow_cid' => expand_acl($rr['allow_cid']), 'allow_gid' => expand_acl($rr['allow_gid']), 'deny_cid' => expand_acl($rr['deny_cid']), |