Skip to content

Commit 6fd4434

Browse files
committed
capture: respect collage limit on collage selection
Change-Id: I93e212f881af9162635d3ffd132bbe69de9065bf
1 parent ff15598 commit 6fd4434

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

api/capture.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,10 @@
1919
throw new \Exception('No style provided');
2020
}
2121

22+
if (isset($_POST['collageLimit'])) {
23+
$config['collage']['limit'] = $_POST['collageLimit'];
24+
}
25+
2226
if (!empty($_POST['file']) && (preg_match('/^[a-z0-9_]+\.jpg$/', $_POST['file']) || preg_match('/^[a-z0-9_]+\.(mp4)$/', $_POST['file']))) {
2327
$file = $_POST['file'];
2428
} else {

assets/js/core.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -562,6 +562,7 @@ const photoBooth = (function () {
562562
if (api.photoStyle === PhotoStyle.COLLAGE) {
563563
data.file = currentCollageFile;
564564
data.collageNumber = api.nextCollageNumber;
565+
data.collageLimit = api.collageLimit;
565566
}
566567

567568
if (api.photoStyle === PhotoStyle.CHROMA) {

0 commit comments

Comments
 (0)