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