summaryrefslogtreecommitdiff
path: root/app/Controller/FileViewerController.php
diff options
context:
space:
mode:
authorFrederic Guillot <fred@kanboard.net>2016-05-31 22:42:50 -0400
committerFrederic Guillot <fred@kanboard.net>2016-05-31 22:42:50 -0400
commit92aba95959633eee824e2d19e12adc7921d31431 (patch)
tree57e8deada057a4bad6fb0e2fe28d438f8856ad53 /app/Controller/FileViewerController.php
parent4987e245bb629e3171425bf16db341c5c3a7c3c7 (diff)
Fix typo after refactoring
Diffstat (limited to 'app/Controller/FileViewerController.php')
-rw-r--r--app/Controller/FileViewerController.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/Controller/FileViewerController.php b/app/Controller/FileViewerController.php
index 245845c7..518f5b0b 100644
--- a/app/Controller/FileViewerController.php
+++ b/app/Controller/FileViewerController.php
@@ -45,7 +45,7 @@ class FileViewerController extends BaseController
$type = $this->helper->file->getPreviewType($file['name']);
$params = array('file_id' => $file['id'], 'project_id' => $this->request->getIntegerParam('project_id'));
- if ($file['model'] === 'taskFile') {
+ if ($file['model'] === 'taskFileModel') {
$params['task_id'] = $file['task_id'];
}