aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2014-05-29 17:09:14 -0700
committerfriendica <info@friendica.com>2014-05-29 17:09:14 -0700
commita3487efd57b3b13463d3eba1d556e49f4948a6ce (patch)
tree41a0be0746cb8a020c9739fc5378e83562b32cd5
parent118b4c88bd1de3408cce650825e818d6a00a6e91 (diff)
downloadvolse-hubzilla-a3487efd57b3b13463d3eba1d556e49f4948a6ce.tar.gz
volse-hubzilla-a3487efd57b3b13463d3eba1d556e49f4948a6ce.tar.bz2
volse-hubzilla-a3487efd57b3b13463d3eba1d556e49f4948a6ce.zip
start to tie in the new event logic
-rw-r--r--include/event.php2
-rwxr-xr-xmod/events.php5
2 files changed, 4 insertions, 3 deletions
diff --git a/include/event.php b/include/event.php
index 4762ccff7..0dde6b1a5 100644
--- a/include/event.php
+++ b/include/event.php
@@ -243,7 +243,7 @@ dbg(1);
-function event_store_item($arr) {
+function event_store_item($arr,$event) {
require_once('include/datetime.php');
require_once('include/items.php');
diff --git a/mod/events.php b/mod/events.php
index 8bf8c6ce1..126460e9a 100755
--- a/mod/events.php
+++ b/mod/events.php
@@ -125,9 +125,10 @@ function events_post(&$a) {
$datarray['created'] = $created;
$datarray['edited'] = $edited;
- $item_id = event_store($datarray);
+ $event = event_store_event($datarray);
+ $item_id = event_store_item($datarray,$event);
- if(! $cid)
+ if($share)
proc_run('php',"include/notifier.php","event","$item_id");
}