Skip to content

Commit f980aa1

Browse files
committed
Use 0/1 instead of n/y
1 parent f0b599f commit f980aa1

2 files changed

Lines changed: 5 additions & 4 deletions

File tree

application/forms/BackendConfigForm.php

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -170,8 +170,10 @@ public function assemble(): void
170170
]);
171171

172172
$this->addElement('checkbox', 'local_chrome__force_temp_storage', [
173-
'label' => $this->translate('Use temp storage'),
174-
'description' => $this->translate('Use temp storage to transfer the html to the local chrome instance.'),
173+
'label' => $this->translate('Use temp storage'),
174+
'description' => $this->translate('Use temp storage to transfer the html to the local chrome instance.'),
175+
'checkedValue' => '1',
176+
'uncheckedValue' => '0',
175177
]);
176178

177179
$this->addElement('submit', 'submit', [

library/Pdfexport/BackendLocator.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,6 @@ protected function getSingleBackend($section): ?PfdPrintBackend
127127

128128
public static function getForceTempStorage(): bool
129129
{
130-
$value = Config::module('pdfexport')->get('chrome', 'force_temp_storage', 'n');
131-
return in_array($value, ['1', 'y']);
130+
return Config::module('pdfexport')->get('chrome', 'force_temp_storage', '0') === '1';
132131
}
133132
}

0 commit comments

Comments
 (0)