Skip to content

Commit

Permalink
The true value of the PDF_DEMO_LINK option was not working
Browse files Browse the repository at this point in the history
  • Loading branch information
wincelau committed May 2, 2023
1 parent c19f1af commit 4646ad3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion app.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
$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');
}

Expand Down
2 changes: 1 addition & 1 deletion config/config.ini.example
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 4646ad3

Please sign in to comment.