summaryrefslogtreecommitdiff
path: root/app/Controller
diff options
context:
space:
mode:
authorFrederic Guillot <fred@kanboard.net>2015-01-25 10:47:21 -0500
committerFrederic Guillot <fred@kanboard.net>2015-01-25 10:47:21 -0500
commit655d75a3cf154d14b10ffbf2baa42a549cf214f7 (patch)
tree546dbebac0a84c2b6fcf5afb4c1adb5729bdd7bd /app/Controller
parentbf65a95851f027c465e235b6988ae207c8a1f8ef (diff)
Add new constants: FILES_DIR and DEBUG_FILE
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);