]> git.mxchange.org Git - friendica.git/blobdiff - mod/events.php
Merge branch 'develop' into rewrite/gravity-constants
[friendica.git] / mod / events.php
index bd80ee0ca62fb108c1891fb19a335091678a75ee..a9a2e47fe2d6ddb5dc9149762e7d68e09e6fe98e 100644 (file)
@@ -121,7 +121,7 @@ function events_post(App $a)
        $onerror_path = 'events/' . $action . '?' . http_build_query($params, '', '&', PHP_QUERY_RFC3986);
 
        if (strcmp($finish, $start) < 0 && !$nofinish) {
-               notice(DI::l10n()->t('Event can not end before it has started.'));
+               DI::sysmsg()->addNotice(DI::l10n()->t('Event can not end before it has started.'));
                if (intval($_REQUEST['preview'])) {
                        System::httpExit(DI::l10n()->t('Event can not end before it has started.'));
                }
@@ -129,7 +129,7 @@ function events_post(App $a)
        }
 
        if (!$summary || ($start === DBA::NULL_DATETIME)) {
-               notice(DI::l10n()->t('Event title and start time are required.'));
+               DI::sysmsg()->addNotice(DI::l10n()->t('Event title and start time are required.'));
                if (intval($_REQUEST['preview'])) {
                        System::httpExit(DI::l10n()->t('Event title and start time are required.'));
                }
@@ -206,7 +206,7 @@ function events_post(App $a)
        }
 
        if (!$cid && $uri_id) {
-               Worker::add(PRIORITY_HIGH, "Notifier", Delivery::POST, (int)$uri_id, (int)$uid);
+               Worker::add(Worker::PRIORITY_HIGH, "Notifier", Delivery::POST, (int)$uri_id, (int)$uid);
        }
 
        DI::baseUrl()->redirect('events');
@@ -215,7 +215,7 @@ function events_post(App $a)
 function events_content(App $a)
 {
        if (!local_user()) {
-               notice(DI::l10n()->t('Permission denied.'));
+               DI::sysmsg()->addNotice(DI::l10n()->t('Permission denied.'));
                return Login::form();
        }
 
@@ -532,7 +532,7 @@ function events_content(App $a)
                }
 
                if (Post::exists(['id' => $ev[0]['itemid']])) {
-                       notice(DI::l10n()->t('Failed to remove event'));
+                       DI::sysmsg()->addNotice(DI::l10n()->t('Failed to remove event'));
                }
 
                DI::baseUrl()->redirect('events');