filerepo: fix return type of FileRepo::streamFileWithStatus()
Change-Id: Ibb4610630203e22d921189699f6c51298212d5d3
This commit is contained in:
parent
196da35474
commit
84fbe50b53
1 changed files with 2 additions and 1 deletions
|
|
@ -202,7 +202,8 @@ abstract class MediaTransformOutput {
|
|||
return Status::newFatal( 'backend-fail-stream', '<no path>' );
|
||||
} elseif ( FileBackend::isStoragePath( $this->path ) ) {
|
||||
$be = $this->file->getRepo()->getBackend();
|
||||
return $be->streamFile( [ 'src' => $this->path, 'headers' => $headers ] );
|
||||
return Status::wrap(
|
||||
$be->streamFile( [ 'src' => $this->path, 'headers' => $headers ] ) );
|
||||
} else { // FS-file
|
||||
$success = StreamFile::stream( $this->getLocalCopyPath(), $headers );
|
||||
return $success ? Status::newGood() : Status::newFatal( 'backend-fail-stream', $this->path );
|
||||
|
|
|
|||
Loading…
Reference in a new issue