echo splash msg

This commit is contained in:
Uwe Steinmann 2023-03-13 10:22:54 +01:00
parent 00fe788571
commit 67d6191024

View File

@ -219,6 +219,8 @@ else
if (is_bool($contentResult) && !$contentResult) {
UI::exitError(getMLText("document_title", array("documentname" => $document->getName())),getMLText("error_occured"));
} elseif (is_bool($contentResult) && $contentResult) {
UI::exitError(getMLText("document_title", array("documentname" => $document->getName())),getMLText("error_no_checkin"));
$session->setSplashMsg(array('type'=>'error', 'msg'=>getMLText('splash_error_checkin_ended')));
} else {
// Send notification to subscribers.
if ($notifier){
@ -379,6 +381,7 @@ else
UI::exitError(getMLText("document_title", array("documentname" => $document->getName())),getMLText("error_occured"));
}
}
$session->setSplashMsg(array('type'=>'success', 'msg'=>getMLText('splash_checked_in')));
}
add_log_line("?documentid=".$documentid);