Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/richdocuments.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/Controller/TemplatesController.php10
1 files changed, 5 insertions, 5 deletions
diff --git a/lib/Controller/TemplatesController.php b/lib/Controller/TemplatesController.php
index 1724f660..e59a0396 100644
--- a/lib/Controller/TemplatesController.php
+++ b/lib/Controller/TemplatesController.php
@@ -195,11 +195,11 @@ class TemplatesController extends Controller {
*/
private function fetchPreview(
Node $node,
- $x,
- $y,
- $a = false,
- $forceIcon = true,
- string $mode): Http\Response {
+ int $x,
+ int $y,
+ bool $a = false,
+ bool $forceIcon = true,
+ string $mode = IPreview::MODE_FILL): Http\Response {
if (!($node instanceof Node) || (!$forceIcon && !$this->preview->isAvailable($node))) {
return new DataResponse([], Http::STATUS_NOT_FOUND);