show filename as saved in database table

This commit is contained in:
Uwe Steinmann 2015-11-30 20:44:33 +01:00
parent 10cbf3b3b3
commit 348d40ad22

View File

@ -230,10 +230,10 @@ class SeedDMS_View_ViewDocument extends SeedDMS_Bootstrap_Style {
<div class="span3">
<?php
$this->contentHeading(getMLText("document_infos"));
if($document->isCheckedOut()) {
if($info = $document->getCheckOutInfo()) {
echo "<div class=\"alert alert-info\">";
$checkoutpath = sprintf($checkoutdir, preg_replace('/[^A-Za-z0-9_-]/', '', $user->getLogin()));
echo "<a href=\"file://".$checkoutpath.urldecode($latestContent->getOriginalFileName())."\">".getMLText('copied_to_checkout_as', array('filename'=>$latestContent->getOriginalFileName()))."</a>";
echo "<a href=\"file://".$info['filename']."\">".getMLText('copied_to_checkout_as', array('filename'=>substr($info['filename'], strlen($checkoutpath)+1)))."</a>";
echo "</div>";
}
$this->contentContainerStart();