aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorzotlabs <mike@macgirvin.com>2016-10-18 16:46:09 -0700
committerzotlabs <mike@macgirvin.com>2016-10-18 16:46:09 -0700
commit2db7b2d9487d9393d511998ae0258979fde379c4 (patch)
tree04996358eda8e186a496e054b5223495f947181d
parentd55fcd055d878d29864bdf609f6e3f26e24837d0 (diff)
downloadvolse-hubzilla-2db7b2d9487d9393d511998ae0258979fde379c4.tar.gz
volse-hubzilla-2db7b2d9487d9393d511998ae0258979fde379c4.tar.bz2
volse-hubzilla-2db7b2d9487d9393d511998ae0258979fde379c4.zip
change event behaviour - share by default.
-rw-r--r--Zotlabs/Module/Events.php6
-rwxr-xr-xview/tpl/event_form.tpl4
2 files changed, 4 insertions, 6 deletions
diff --git a/Zotlabs/Module/Events.php b/Zotlabs/Module/Events.php
index b709cd1f4..a5cc868be 100644
--- a/Zotlabs/Module/Events.php
+++ b/Zotlabs/Module/Events.php
@@ -118,8 +118,10 @@ class Events extends \Zotlabs\Web\Controller {
goaway($onerror_url);
}
- $share = ((intval($_POST['distr'])) ? intval($_POST['distr']) : 0);
-
+ // $share = ((intval($_POST['distr'])) ? intval($_POST['distr']) : 0);
+
+ $share = 1;
+
$channel = \App::get_channel();
$acl = new \Zotlabs\Access\AccessList(false);
diff --git a/view/tpl/event_form.tpl b/view/tpl/event_form.tpl
index a2bb1f112..0f37d8287 100755
--- a/view/tpl/event_form.tpl
+++ b/view/tpl/event_form.tpl
@@ -105,10 +105,6 @@
</div>
</div>
- {{if ! $eid}}
- {{include file="field_checkbox.tpl" field=$share}}
- {{/if}}
-
<div class="clear"></div>
<button type="button" class="btn btn-default" onclick="openClose('advanced');">{{$advanced}}</button>