diff --git a/app.php b/app.php index c2a16c8..c23680a 100644 --- a/app.php +++ b/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); } diff --git a/config/config.ini.example b/config/config.ini.example index 8ab3bca..a1a6aa1 100644 --- a/config/config.ini.example +++ b/config/config.ini.example @@ -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"