mirror of
https://git.code.sf.net/p/seeddms/code
synced 2025-05-31 22:17:33 +00:00
show filename as saved in database table
This commit is contained in:
parent
10cbf3b3b3
commit
348d40ad22
|
@ -230,10 +230,10 @@ class SeedDMS_View_ViewDocument extends SeedDMS_Bootstrap_Style {
|
||||||
<div class="span3">
|
<div class="span3">
|
||||||
<?php
|
<?php
|
||||||
$this->contentHeading(getMLText("document_infos"));
|
$this->contentHeading(getMLText("document_infos"));
|
||||||
if($document->isCheckedOut()) {
|
if($info = $document->getCheckOutInfo()) {
|
||||||
echo "<div class=\"alert alert-info\">";
|
echo "<div class=\"alert alert-info\">";
|
||||||
$checkoutpath = sprintf($checkoutdir, preg_replace('/[^A-Za-z0-9_-]/', '', $user->getLogin()));
|
$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>";
|
echo "</div>";
|
||||||
}
|
}
|
||||||
$this->contentContainerStart();
|
$this->contentContainerStart();
|
||||||
|
|
Loading…
Reference in New Issue
Block a user