mirror of
https://github.com/friendica/friendica
synced 2025-05-14 23:04:17 +02:00
adhere feedback
This commit is contained in:
parent
f13c91b320
commit
78a8ed6fe7
10 changed files with 76 additions and 87 deletions
|
@ -184,7 +184,6 @@ class API extends BaseModule
|
|||
if (strcmp($finish, $start) < 0 && !$noFinish) {
|
||||
if ($isPreview) {
|
||||
System::httpExit($this->t('Event can not end before it has started.'));
|
||||
return;
|
||||
} else {
|
||||
$this->sysMessages->addNotice($this->t('Event can not end before it has started.'));
|
||||
$this->baseUrl->redirect($redirectOnError);
|
||||
|
@ -194,7 +193,6 @@ class API extends BaseModule
|
|||
if (empty($summary) || ($start === DBA::NULL_DATETIME)) {
|
||||
if ($isPreview) {
|
||||
System::httpExit($this->t('Event title and start time are required.'));
|
||||
return;
|
||||
} else {
|
||||
$this->sysMessages->addNotice($this->t('Event title and start time are required.'));
|
||||
$this->baseUrl->redirect($redirectOnError);
|
||||
|
@ -252,7 +250,6 @@ class API extends BaseModule
|
|||
|
||||
if (intval($request['preview'])) {
|
||||
System::httpExit(Event::getHTML($datarray));
|
||||
return;
|
||||
}
|
||||
|
||||
$eventId = Event::store($datarray);
|
||||
|
@ -269,7 +266,7 @@ class API extends BaseModule
|
|||
}
|
||||
|
||||
if (!$cid && $uriId) {
|
||||
Worker::add(Worker::PRIORITY_HIGH, "Notifier", Delivery::POST, $uriId, $uid);
|
||||
Worker::add(Worker::PRIORITY_HIGH, 'Notifier', Delivery::POST, $uriId, $uid);
|
||||
}
|
||||
|
||||
$this->baseUrl->redirect('calendar');
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue