mirror of
https://github.com/24eme/signaturepdf
synced 2026-03-14 13:55:44 +01:00
retention: change config format
This commit is contained in:
parent
161df8d421
commit
bc11241a28
2 changed files with 8 additions and 9 deletions
5
app.php
5
app.php
|
|
@ -119,9 +119,8 @@ $f3->route('GET /signature',
|
|||
|
||||
if ($f3->exists('signature')) {
|
||||
$retentions = [];
|
||||
foreach ($f3->get('signature.retention') ?? [] as $retention) {
|
||||
$r = explode(':', $retention);
|
||||
$retentions[$r[0]] = $r[1];
|
||||
foreach ($f3->get('signature.retention') ?? [] as $key => $text) {
|
||||
$retentions[$key] = $text;
|
||||
}
|
||||
$f3->set('signatureRetention', $retentions);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -36,9 +36,9 @@ PDF_STORAGE_PATH=/path/to/folder
|
|||
; Enable custom retention period for shared PDF
|
||||
; This override the default retention periods
|
||||
; Warning: Text on the right of the colon will be translated according to the .po files
|
||||
;retention.0="+1 year:for one year"
|
||||
;retention.1="+6 months:for six months"
|
||||
;retention.2="+1 month:for one month"
|
||||
;retention.3="+1 week:for one week"
|
||||
;retention.4="+1 day:for one day"
|
||||
;retention.5="+1 hour:for one hour"
|
||||
;retention[+1 year]="for one year"
|
||||
;retention[+6 months]="for six months"
|
||||
;retention[+1 month]="for one month"
|
||||
;retention[+1 week]="for one week"
|
||||
;retention[+1 day]="for one day"
|
||||
;retention[+1 hour]="for one hour"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue