initial test of flash msg

This commit is contained in:
Uwe Steinmann 2013-05-18 22:53:19 +02:00
parent b5caa801b6
commit b4cdef804e
2 changed files with 5 additions and 0 deletions

View File

@ -51,6 +51,8 @@ if (!$document->setLocked($user)) {
UI::exitError(getMLText("document_title", array("documentname" => $document->getName())),getMLText("error_occured"));
}
$session->setFlashMsg(array('type'=>'success', 'msg'=>'Document locked'));
add_log_line();
header("Location:../out/out.ViewDocument.php?documentid=".$documentid);

View File

@ -56,6 +56,9 @@ if (($lockingUser->getID() == $user->getID()) || ($document->getAccessMode($user
else {
UI::exitError(getMLText("document_title", array("documentname" => $document->getName())),getMLText("access_denied"));
}
$session->setFlashMsg(array('type'=>'success', 'msg'=>'Document unlocked'));
add_log_line();
header("Location:../out/out.ViewDocument.php?documentid=".$documentid);