From 4646ad35a7bffee8870edab40a37070718256230 Mon Sep 17 00:00:00 2001 From: Vincent LAURENT Date: Wed, 3 May 2023 00:47:29 +0200 Subject: [PATCH] The true value of the PDF_DEMO_LINK option was not working --- app.php | 2 +- config/config.ini.example | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app.php b/app.php index 79a6fd7..32e11c0 100644 --- a/app.php +++ b/app.php @@ -16,7 +16,7 @@ if($f3->get('PDF_STORAGE_PATH') && !preg_match('|/$|', $f3->get('PDF_STORAGE_PAT $f3->set('PDF_STORAGE_PATH', $f3->get('PDF_STORAGE_PATH').'/'); } -if(!$f3->get('PDF_DEMO_LINK') && $f3->get('PDF_DEMO_LINK') !== false) { +if($f3->get('PDF_DEMO_LINK') === null || $f3->get('PDF_DEMO_LINK') === true) { $f3->set('PDF_DEMO_LINK', 'https://raw.githubusercontent.com/24eme/signaturepdf/master/tests/files/document.pdf'); } diff --git a/config/config.ini.example b/config/config.ini.example index 7611cbd..50c6240 100644 --- a/config/config.ini.example +++ b/config/config.ini.example @@ -7,7 +7,7 @@ PDF_STORAGE_PATH=/path/to/folder ; Disable organization tab and routes ;DISABLE_ORGANIZATION=false -; Manage demo link pdf : true (by default, show), false (hide), or custom link +; Manage demo link pdf : true (by default, show with default link), false (hide), or custom link ;PDF_DEMO_LINK=true ; Metadata default fields