X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=mod%2Fevents.php;h=1b5dfdf31c03618f2ed091dd72ac59be28473281;hb=0c9cc29a51941eb572bf16fd5489d0947d47d033;hp=b53fe9fd9585ff155c508f7059de7c71bd038b8c;hpb=71c9f562ae4664beef2da6ee11c0f38d3e4eb094;p=friendica.git diff --git a/mod/events.php b/mod/events.php index b53fe9fd95..1b5dfdf31c 100644 --- a/mod/events.php +++ b/mod/events.php @@ -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'), ));