+ complete task #344:add extension to downloadfile.
This commit is contained in:
@@ -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)");
|
||||
}
|
||||
?>
|
||||
|
||||
Reference in New Issue
Block a user