diff --git a/lib/Controller/ImageController.php b/lib/Controller/ImageController.php index 6febdbfc..14782093 100644 --- a/lib/Controller/ImageController.php +++ b/lib/Controller/ImageController.php @@ -101,7 +101,7 @@ class ImageController extends ApiBase // For checking max previews $previewRoot = new \OC\Preview\Storage\Root( \OC::$server->get(IRootFolder::class), - \OC::$server->getSystemConfig(), + \OC::$server->get(\OC\SystemConfig::class), ); // stream the response @@ -145,7 +145,7 @@ class ImageController extends ApiBase } // Add this preview to the response - $preview = $previewManager->getPreview($file, $x, $y, !$a, 'fill'); + $preview = $previewManager->getPreview($file, $x, $y, !$a, \OCP\IPreview::MODE_FILL); $content = $preview->getContent(); if (empty($content)) { continue;