Skip to content

Commit

Permalink
Merge pull request #604 from nextcloud/fix/587
Browse files Browse the repository at this point in the history
fix: Proper default value for to make mode parameter optional
  • Loading branch information
juliusknorr authored Dec 3, 2024
2 parents 31fb004 + 3253b10 commit dd06c94
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/Controller/TemplatesController.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down

0 comments on commit dd06c94

Please sign in to comment.