getMLText("invalid_doc_id"))),getMLText("invalid_doc_id")); } $documentid = $_GET["documentid"]; $document = $dms->getDocument($documentid); if (!is_object($document)) { UI::exitError(getMLText("document_title", array("documentname" => getMLText("invalid_doc_id"))),getMLText("invalid_doc_id")); } $folder = $document->getFolder(); $docPathHTML = $folder->getFolderPathHTML(true). " / ".$document->getName().""; $versionid = $_GET["version"]; $version = $document->getContentByVersion($versionid); if (!is_object($version)) { UI::exitError(getMLText("document_title", array("documentname" => $document->getName())),getMLText("invalid_version")); } UI::htmlStartPage(getMLText("document_title", array("documentname" => $document->getName()))); UI::globalNavigation($folder); UI::pageNavigation($docPathHTML, "view_document"); ?>