From 3253b104f0cd85447214ca20a6c5438abac0b210 Mon Sep 17 00:00:00 2001 From: Julius Knorr Date: Tue, 3 Dec 2024 10:43:26 +0100 Subject: [PATCH] fix: Proper default value for to make mode parameter optional Signed-off-by: Julius Knorr --- lib/Controller/TemplatesController.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Controller/TemplatesController.php b/lib/Controller/TemplatesController.php index 3bcb69cd..5ec10da9 100644 --- a/lib/Controller/TemplatesController.php +++ b/lib/Controller/TemplatesController.php @@ -199,7 +199,7 @@ private function fetchPreview( $y, $a = false, $forceIcon = true, - string $mode): Http\Response { + string $mode = 'fill'): Http\Response { if (!($node instanceof Node) || (!$forceIcon && !$this->preview->isAvailable($node))) { return new DataResponse([], Http::STATUS_NOT_FOUND); }