mirror of
https://git.code.sf.net/p/seeddms/code
synced 2025-03-12 00:45:34 +00:00
move code into switch statement
This commit is contained in:
parent
bcdcfe2b43
commit
36e711f905
|
@ -25,11 +25,10 @@ class SeedDMS_Controller_Download extends SeedDMS_Controller_Common {
|
|||
public function run() {
|
||||
$dms = $this->params['dms'];
|
||||
$type = $this->params['type'];
|
||||
$content = $this->params['content'];
|
||||
|
||||
switch($type) {
|
||||
case "version":
|
||||
|
||||
$content = $this->params['content'];
|
||||
if(null === $this->callHook('version')) {
|
||||
if(file_exists($dms->contentDir . $content->getPath())) {
|
||||
header("Content-Transfer-Encoding: binary");
|
||||
|
|
Loading…
Reference in New Issue
Block a user