Fix the config key on the sharing expire checkbox
We don't use `shareapi_internal_enforce_expire_date` anywhere. `shareapi_enforce_internal_expire_date` is the one we want. Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
This commit is contained in:
parent
e99d6b4dad
commit
49299ed1c1
|
@ -56,7 +56,7 @@
|
||||||
<input type="text" name='shareapi_internal_expire_after_n_days' id="shareapiInternalExpireAfterNDays" placeholder="<?php p('7')?>"
|
<input type="text" name='shareapi_internal_expire_after_n_days' id="shareapiInternalExpireAfterNDays" placeholder="<?php p('7')?>"
|
||||||
value='<?php p($_['shareInternalExpireAfterNDays']) ?>' />
|
value='<?php p($_['shareInternalExpireAfterNDays']) ?>' />
|
||||||
<?php p($l->t('days')); ?>
|
<?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') {
|
value="1" <?php if ($_['shareInternalEnforceExpireDate'] === 'yes') {
|
||||||
print_unescaped('checked="checked"');
|
print_unescaped('checked="checked"');
|
||||||
} ?> />
|
} ?> />
|
||||||
|
|
|
@ -160,7 +160,7 @@ class JSConfigHelper {
|
||||||
$defaultInternalExpireDate = $defaultInternalExpireDateEnforced = null;
|
$defaultInternalExpireDate = $defaultInternalExpireDateEnforced = null;
|
||||||
if ($defaultInternalExpireDateEnabled) {
|
if ($defaultInternalExpireDateEnabled) {
|
||||||
$defaultInternalExpireDate = (int)$this->config->getAppValue('core', 'shareapi_internal_expire_after_n_days', '7');
|
$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;
|
$countOfDataLocation = 0;
|
||||||
|
|
Loading…
Reference in New Issue