+ complete task #344:add extension to downloadfile.

This commit is contained in:
fujia
2010-11-06 05:51:17 +00:00
parent 3fca4d1e9f
commit 7687bf5559
+1 -1
View File
@@ -6,7 +6,7 @@
<?php
foreach($files as $file)
{
if(common::hasPriv('file' , 'download')) echo html::a($this->createLink('file', 'download', "fileID=$file->id"), $file->title, '_blank', "onclick='return downloadFile($file->id)'");
if(common::hasPriv('file' , 'download')) echo html::a($this->createLink('file', 'download', "fileID=$file->id"), $file->title .'.' . $file->extension, '_blank', "onclick='return downloadFile($file->id)'");
if(common::hasPriv('file', 'delete')) echo html::commonButton(' x ', "onclick=deleteFile($file->id)");
}
?>