summaryrefslogtreecommitdiff
path: root/app/Controller
diff options
context:
space:
mode:
Diffstat (limited to 'app/Controller')
-rw-r--r--app/Controller/File.php6
1 files changed, 2 insertions, 4 deletions
diff --git a/app/Controller/File.php b/app/Controller/File.php
index 63052610..3255fe84 100644
--- a/app/Controller/File.php
+++ b/app/Controller/File.php
@@ -2,8 +2,6 @@
namespace Controller;
-use Model\File as FileModel;
-
/**
* File controller
*
@@ -54,7 +52,7 @@ class File extends Base
{
$task = $this->getTask();
$file = $this->file->getById($this->request->getIntegerParam('file_id'));
- $filename = FileModel::BASE_PATH.$file['path'];
+ $filename = FILES_DIR.$file['path'];
if ($file['task_id'] == $task['id'] && file_exists($filename)) {
$this->response->forceDownload($file['name']);
@@ -91,7 +89,7 @@ class File extends Base
{
$task = $this->getTask();
$file = $this->file->getById($this->request->getIntegerParam('file_id'));
- $filename = FileModel::BASE_PATH.$file['path'];
+ $filename = FILES_DIR.$file['path'];
if ($file['task_id'] == $task['id'] && file_exists($filename)) {
$metadata = getimagesize($filename);