diff options
| author | Frederic Guillot <fred@kanboard.net> | 2016-01-31 21:44:49 -0500 |
|---|---|---|
| committer | Frederic Guillot <fred@kanboard.net> | 2016-01-31 21:44:49 -0500 |
| commit | 26492aba7ee2bfb8c525ea0aaa580aff47a414ba (patch) | |
| tree | de2ebb411685057a2a8723ca7f763966478a39f7 /app/Controller/File.php | |
| parent | 271543431e999032d6e91197633119309fa6c622 (diff) | |
Simplify layout and templates generation
Diffstat (limited to 'app/Controller/File.php')
| -rw-r--r-- | app/Controller/File.php | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/app/Controller/File.php b/app/Controller/File.php index 18e787f1..b347f67f 100644 --- a/app/Controller/File.php +++ b/app/Controller/File.php @@ -26,7 +26,7 @@ class File extends Base return $this->response->redirect($this->helper->url->to('task', 'show', array('task_id' => $task['id'], 'project_id' => $task['project_id'])), true); } - $this->response->html($this->taskLayout('file/screenshot', array( + $this->response->html($this->helper->layout->task('file/screenshot', array( 'task' => $task, ))); } @@ -40,7 +40,7 @@ class File extends Base { $task = $this->getTask(); - $this->response->html($this->taskLayout('file/new', array( + $this->response->html($this->helper->layout->task('file/new', array( 'task' => $task, 'max_size' => ini_get('upload_max_filesize'), ))); @@ -178,7 +178,7 @@ class File extends Base $task = $this->getTask(); $file = $this->file->getById($this->request->getIntegerParam('file_id')); - $this->response->html($this->taskLayout('file/remove', array( + $this->response->html($this->helper->layout->task('file/remove', array( 'task' => $task, 'file' => $file, ))); |
