replaced onerror_url with onerror_path
This commit is contained in:
parent
d51e931db7
commit
722a86a7ca
1 changed files with 3 additions and 3 deletions
|
@ -100,7 +100,7 @@ function events_post(App $a)
|
||||||
$type = 'event';
|
$type = 'event';
|
||||||
|
|
||||||
$action = ($event_id == '') ? 'new' : "event/" . $event_id;
|
$action = ($event_id == '') ? 'new' : "event/" . $event_id;
|
||||||
$onerror_url = "events/" . $action . "?summary=$summary&description=$desc&location=$location&start=$start_text&finish=$finish_text&adjust=$adjust&nofinish=$nofinish";
|
$onerror_path = "events/" . $action . "?summary=$summary&description=$desc&location=$location&start=$start_text&finish=$finish_text&adjust=$adjust&nofinish=$nofinish";
|
||||||
|
|
||||||
if (strcmp($finish, $start) < 0 && !$nofinish) {
|
if (strcmp($finish, $start) < 0 && !$nofinish) {
|
||||||
notice(L10n::t('Event can not end before it has started.') . EOL);
|
notice(L10n::t('Event can not end before it has started.') . EOL);
|
||||||
|
@ -108,7 +108,7 @@ function events_post(App $a)
|
||||||
echo L10n::t('Event can not end before it has started.');
|
echo L10n::t('Event can not end before it has started.');
|
||||||
killme();
|
killme();
|
||||||
}
|
}
|
||||||
$a->internalRedirect($onerror_url);
|
$a->internalRedirect($onerror_path);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!$summary || ($start === NULL_DATE)) {
|
if (!$summary || ($start === NULL_DATE)) {
|
||||||
|
@ -117,7 +117,7 @@ function events_post(App $a)
|
||||||
echo L10n::t('Event title and start time are required.');
|
echo L10n::t('Event title and start time are required.');
|
||||||
killme();
|
killme();
|
||||||
}
|
}
|
||||||
$a->internalRedirect($onerror_url);
|
$a->internalRedirect($onerror_path);
|
||||||
}
|
}
|
||||||
|
|
||||||
$share = intval(defaults($_POST, 'share', 0));
|
$share = intval(defaults($_POST, 'share', 0));
|
||||||
|
|
Loading…
Reference in a new issue