base: byval for getPreviewFromImageList (#25)
parent
6a3fda1e0b
commit
bdbce20f91
|
@ -297,7 +297,7 @@ class ApiBase extends Controller
|
||||||
/**
|
/**
|
||||||
* Given a list of file ids, return the first preview image possible.
|
* Given a list of file ids, return the first preview image possible.
|
||||||
*/
|
*/
|
||||||
protected function getPreviewFromImageList(array &$list, int $quality = 512)
|
protected function getPreviewFromImageList(array $list, int $quality = 512)
|
||||||
{
|
{
|
||||||
// Get preview manager
|
// Get preview manager
|
||||||
$previewManager = \OC::$server->get(\OCP\IPreview::class);
|
$previewManager = \OC::$server->get(\OCP\IPreview::class);
|
||||||
|
|
Loading…
Reference in New Issue