mirror of
https://git.code.sf.net/p/seeddms/code
synced 2025-06-01 14:37:20 +00:00
added comment
This commit is contained in:
parent
95db37da76
commit
3ce0474c42
|
@ -52,6 +52,10 @@ if ($document->getAccessMode($user) < M_READ) {
|
|||
$view->exitError(getMLText("document_title", array("documentname" => htmlspecialchars($document->getName()))),getMLText("access_denied"));
|
||||
}
|
||||
|
||||
/* Recalculate the status of a document and reload the page if the status
|
||||
* has changed. A status change may occur if the document has expired in
|
||||
* the mean time
|
||||
*/
|
||||
if ($document->verifyLastestContentExpriry()){
|
||||
header("Location:../out/out.ViewDocument.php?documentid=".$document->getID());
|
||||
}
|
||||
|
@ -67,6 +71,7 @@ if($view) {
|
|||
$view->setParam('accessobject', $accessop);
|
||||
$view->setParam('viewonlinefiletypes', $settings->_viewOnlineFileTypes);
|
||||
$view->setParam('cachedir', $settings->_cacheDir);
|
||||
$view->setParam('workflowmode', $settings->_workflowMode);
|
||||
$view->show();
|
||||
exit;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user