]> git.mxchange.org Git - friendica.git/blobdiff - mod/events.php
Added response active support to smoothly
[friendica.git] / mod / events.php
index b53fe9fd9585ff155c508f7059de7c71bd038b8c..1b5dfdf31c03618f2ed091dd72ac59be28473281 100644 (file)
@@ -15,7 +15,7 @@ function events_init(&$a) {
        if($a->argc == 1) {
                // if it's a json request abort here becaus we don't
                // need the widget data
-               if($a->argv[1] !== 'json')
+               if($a->argv[1] === 'json')
                        return;
 
                $cal_widget = widget_events();
@@ -177,7 +177,7 @@ function events_post(&$a) {
        $item_id = event_store($datarray);
 
        if(! $cid)
-               proc_run('php',"include/notifier.php","event","$item_id");
+               proc_run(PRIORITY_HIGH, "include/notifier.php", "event", $item_id);
 
        goaway($_SESSION['return_url']);
 }
@@ -506,7 +506,8 @@ function events_content(&$a) {
                        '$acl' => $acl,
                        '$submit' => t('Submit'),
                        '$basic' => t("Basic"),
-                       '$advanced' => t("Advanced")
+                       '$advanced' => t("Advanced"),
+                       '$permissions' => t('Permissions'),
 
                ));