fix download link

the link did not contain the right version number
This commit is contained in:
Uwe Steinmann 2013-03-12 09:02:32 +01:00
parent 5059d5d456
commit c7b551e0ae

View File

@ -91,7 +91,7 @@ class SeedDMS_View_SearchFulltext extends SeedDMS_Bootstrap_Style {
else {
$lc = $document->getLatestContent();
print "<tr>";
print "<td><a href=\"../op/op.Download.php?documentid=".$docID."&version=".$version."\"><img class=\"mimeicon\" src=\"".$this->getMimeIcon($lc->getFileType())."\" title=\"".htmlspecialchars($lc->getMimeType())."\"></a></td>";
print "<td><a href=\"../op/op.Download.php?documentid=".$docID."&version=".$lc->getVersion()."\"><img class=\"mimeicon\" src=\"".$this->getMimeIcon($lc->getFileType())."\" title=\"".htmlspecialchars($lc->getMimeType())."\"></a></td>";
$docName = htmlspecialchars($document->getName());
print "<td><a class=\"standardText\" href=\"../out/out.ViewDocument.php?documentid=".$document->getID()."\">/";
$folder = $document->getFolder();