summaryrefslogtreecommitdiff
path: root/app/Controller
diff options
context:
space:
mode:
authorFrederic Guillot <fred@kanboard.net>2015-09-23 21:22:03 -0400
committerFrederic Guillot <fred@kanboard.net>2015-09-23 21:22:03 -0400
commit5be520562997d3898268ed6bb44720ca35e062f1 (patch)
treeb512de0e40507ea004a287de3b807d78e23fbcc7 /app/Controller
parent25b9e90ef3b6018f898047be025ad859fcbbd96a (diff)
Change interface for objectStorage
Diffstat (limited to 'app/Controller')
-rw-r--r--app/Controller/File.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/app/Controller/File.php b/app/Controller/File.php
index 1431372f..ef90c55a 100644
--- a/app/Controller/File.php
+++ b/app/Controller/File.php
@@ -86,7 +86,7 @@ class File extends Base
}
$this->response->forceDownload($file['name']);
- $this->objectStorage->passthru($file['path']);
+ $this->objectStorage->output($file['path']);
}
catch (ObjectStorageException $e) {
$this->logger->error($e->getMessage());
@@ -128,7 +128,7 @@ class File extends Base
}
$this->response->contentType($this->file->getImageMimeType($file['name']));
- $this->objectStorage->passthru($file['path']);
+ $this->objectStorage->output($file['path']);
}
catch (ObjectStorageException $e) {
$this->logger->error($e->getMessage());
@@ -152,7 +152,7 @@ class File extends Base
}
$this->response->contentType('image/jpeg');
- $this->objectStorage->passthru($this->file->getThumbnailPath($file['path']));
+ $this->objectStorage->output($this->file->getThumbnailPath($file['path']));
}
catch (ObjectStorageException $e) {
$this->logger->error($e->getMessage());