Switched to getHttpResonse() instead of output()

This commit is contained in:
Luke Towers 2019-01-15 15:58:45 -06:00
parent 44db59cba1
commit 743c74643a
1 changed files with 2 additions and 4 deletions

View File

@ -26,8 +26,7 @@ class Files extends Controller
public function get($code = null)
{
try {
echo $this->findFileObject($code)->output();
exit;
return $this->findFileObject($code)->getHttpResponse();
}
catch (Exception $ex) {}
@ -40,12 +39,11 @@ class Files extends Controller
public function thumb($code = null, $width = 100, $height = 100, $mode = 'auto', $extension = 'auto')
{
try {
echo $this->findFileObject($code)->outputThumb(
return $this->findFileObject($code)->getThumbHttpResponse(
$width,
$height,
compact('mode', 'extension')
);
exit;
}
catch (Exception $ex) {}