From 449d9634dbc92a98b0a081e9a81108172c10eeec Mon Sep 17 00:00:00 2001
From: Miraty
Date: Tue, 31 May 2022 16:05:57 +0200
Subject: [PATCH] Set default value for size and margin, fix $qrSize
---
config.inc.php | 4 ++--
index.php | 18 ++++--------------
2 files changed, 6 insertions(+), 16 deletions(-)
diff --git a/config.inc.php b/config.inc.php
index d0a3aaf..afdab6a 100755
--- a/config.inc.php
+++ b/config.inc.php
@@ -14,7 +14,7 @@ define("CUSTOM_TEXT", "This LibreQR instance is hosted by
-
-
+
@@ -187,13 +181,7 @@ foreach($themeDimensionsIcons as $dimFav) // Set all icons dimensions
= $loc['help_size'] ?>
-
-
+
@@ -257,6 +245,8 @@ if ($validFormSubmitted) {
$dataUri = $result->getDataUri();
+ $qrSize = $params['size'] + 2 * $params['margin'];
+
?>