From 36e711f905ef5fa546e5be55668b4f022e44b9eb Mon Sep 17 00:00:00 2001 From: Uwe Steinmann Date: Mon, 12 Mar 2018 18:32:12 +0100 Subject: [PATCH] move code into switch statement --- controllers/class.Download.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/controllers/class.Download.php b/controllers/class.Download.php index ba9288167..c8e381014 100644 --- a/controllers/class.Download.php +++ b/controllers/class.Download.php @@ -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");