diff options
author | zotlabs <mike@macgirvin.com> | 2017-01-02 14:13:02 -0800 |
---|---|---|
committer | zotlabs <mike@macgirvin.com> | 2017-01-02 14:13:02 -0800 |
commit | 1ceca4ae194fe611f93f70bcf2a6222c8badd3dc (patch) | |
tree | 39c0fd754a8df30b5ef6aa1da5edc7b0049ebad0 | |
parent | fa611b3616ad2c94ea1cc06a89af3d641b714edc (diff) | |
download | volse-hubzilla-1ceca4ae194fe611f93f70bcf2a6222c8badd3dc.tar.gz volse-hubzilla-1ceca4ae194fe611f93f70bcf2a6222c8badd3dc.tar.bz2 volse-hubzilla-1ceca4ae194fe611f93f70bcf2a6222c8badd3dc.zip |
set 'adjust for viewer timezone' as the default for new events.
-rw-r--r-- | Zotlabs/Module/Events.php | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/Zotlabs/Module/Events.php b/Zotlabs/Module/Events.php index c3d1dd89c..edc6dd3f0 100644 --- a/Zotlabs/Module/Events.php +++ b/Zotlabs/Module/Events.php @@ -378,11 +378,14 @@ class Events extends \Zotlabs\Web\Controller { $event_xchan = ((x($orig_event)) ? $orig_event['event_xchan'] : $channel['channel_hash']); $mid = ((x($orig_event)) ? $orig_event['mid'] : ''); - if(! x($orig_event)) + if(! x($orig_event)) { $sh_checked = ''; - else + $a_checked = ' checked="checked" '; + } + else { $sh_checked = ((($orig_event['allow_cid'] === '<' . $channel['channel_hash'] . '>' || (! $orig_event['allow_cid'])) && (! $orig_event['allow_gid']) && (! $orig_event['deny_cid']) && (! $orig_event['deny_gid'])) ? '' : ' checked="checked" ' ); - + } + if($orig_event['event_xchan']) $sh_checked .= ' disabled="disabled" '; |