mirror of
https://git.code.sf.net/p/seeddms/code
synced 2025-05-14 21:51:32 +00:00
fix wrong check for extings approval/review file
This commit is contained in:
parent
7d0a18861b
commit
0c8daca856
|
@ -134,7 +134,6 @@ class SeedDMS_Controller_Download extends SeedDMS_Controller_Common {
|
|||
}
|
||||
|
||||
if(null === $this->callHook('approval')) {
|
||||
if(file_exists($dms->contentDir . $filename)) {
|
||||
$finfo = finfo_open(FILEINFO_MIME_TYPE);
|
||||
$mimetype = finfo_file($finfo, $filename);
|
||||
|
||||
|
@ -145,7 +144,6 @@ class SeedDMS_Controller_Download extends SeedDMS_Controller_Common {
|
|||
header("Cache-Control: must-revalidate");
|
||||
readfile($filename);
|
||||
}
|
||||
}
|
||||
} /* }}} */
|
||||
|
||||
public function review() { /* {{{ */
|
||||
|
@ -160,7 +158,6 @@ class SeedDMS_Controller_Download extends SeedDMS_Controller_Common {
|
|||
}
|
||||
|
||||
if(null === $this->callHook('review')) {
|
||||
if(file_exists($dms->contentDir . $filename)) {
|
||||
$finfo = finfo_open(FILEINFO_MIME_TYPE);
|
||||
$mimetype = finfo_file($finfo, $filename);
|
||||
|
||||
|
@ -171,7 +168,6 @@ class SeedDMS_Controller_Download extends SeedDMS_Controller_Common {
|
|||
header("Cache-Control: must-revalidate");
|
||||
readfile($filename);
|
||||
}
|
||||
}
|
||||
return true;
|
||||
} /* }}} */
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user