mirror of
https://git.code.sf.net/p/seeddms/code
synced 2025-05-11 12:11:19 +00:00
fix syntax error
This commit is contained in:
parent
bd7868cfc7
commit
aa836a8954
|
@ -47,7 +47,7 @@ class SeedDMS_Controller_Download extends SeedDMS_Controller_Common {
|
|||
$file = $this->params['file'];
|
||||
|
||||
if(!$this->callHook('file')) {
|
||||
if(file_exists($dms->contentDir . $file->getPath()) {
|
||||
if(file_exists($dms->contentDir . $file->getPath())) {
|
||||
header("Content-Type: application/force-download; name=\"" . $file->getOriginalFileName() . "\"");
|
||||
header("Content-Transfer-Encoding: binary");
|
||||
header("Content-Length: " . filesize($dms->contentDir . $file->getPath() ));
|
||||
|
|
Loading…
Reference in New Issue
Block a user