add fold marks

This commit is contained in:
Uwe Steinmann 2020-12-09 19:54:58 +01:00
parent 4b4595181b
commit 063b950b3a

View File

@ -46,7 +46,7 @@ if ($document->getAccessMode($user) < M_READ) {
UI::exitError(getMLText("document_title", array("documentname" => $document->getName())),getMLText("access_denied"));
}
if(isset($_GET["version"])) {
if(isset($_GET["version"])) { /* {{{ */
$version = $_GET["version"];
if (!is_numeric($version)) {
@ -59,7 +59,8 @@ if(isset($_GET["version"])) {
if(!$controller->run()) {
UI::exitError(getMLText("document_title", array("documentname" => $document->getName())),getMLText("invalid_version"));
}
} elseif(isset($_GET["file"])) {
} /* }}} */
elseif(isset($_GET["file"])) { /* {{{ */
$fileid = $_GET["file"];
if (!is_numeric($fileid) || intval($fileid)<1) {
@ -83,7 +84,7 @@ if(isset($_GET["version"])) {
ob_clean();
readfile($dms->contentDir . $file->getPath());
}
} /* }}} */
add_log_line();
exit;