Merge pull request #24346 from nextcloud/backport/24341/stable20
[stable20] Fix the config key on the sharing expire checkbox
This commit is contained in:
commit
6e279bf6c6
|
@ -56,7 +56,7 @@
|
|||
<input type="text" name='shareapi_internal_expire_after_n_days' id="shareapiInternalExpireAfterNDays" placeholder="<?php p('7')?>"
|
||||
value='<?php p($_['shareInternalExpireAfterNDays']) ?>' />
|
||||
<?php p($l->t('days')); ?>
|
||||
<input type="checkbox" name="shareapi_internal_enforce_expire_date" id="shareapiInternalEnforceExpireDate" class="checkbox"
|
||||
<input type="checkbox" name="shareapi_enforce_internal_expire_date" id="shareapiInternalEnforceExpireDate" class="checkbox"
|
||||
value="1" <?php if ($_['shareInternalEnforceExpireDate'] === 'yes') {
|
||||
print_unescaped('checked="checked"');
|
||||
} ?> />
|
||||
|
|
|
@ -160,7 +160,7 @@ class JSConfigHelper {
|
|||
$defaultInternalExpireDate = $defaultInternalExpireDateEnforced = null;
|
||||
if ($defaultInternalExpireDateEnabled) {
|
||||
$defaultInternalExpireDate = (int)$this->config->getAppValue('core', 'shareapi_internal_expire_after_n_days', '7');
|
||||
$defaultInternalExpireDateEnforced = $this->config->getAppValue('core', 'shareapi_internal_enforce_expire_date', 'no') === 'yes';
|
||||
$defaultInternalExpireDateEnforced = $this->config->getAppValue('core', 'shareapi_enforce_internal_expire_date', 'no') === 'yes';
|
||||
}
|
||||
|
||||
$countOfDataLocation = 0;
|
||||
|
|
Loading…
Reference in New Issue