diff options
Diffstat (limited to 'lib')
-rw-r--r-- | lib/private/Share20/Manager.php | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/lib/private/Share20/Manager.php b/lib/private/Share20/Manager.php index 3a9176e9eb3..db9c704871d 100644 --- a/lib/private/Share20/Manager.php +++ b/lib/private/Share20/Manager.php @@ -1699,8 +1699,6 @@ class Manager implements IManager { * @return bool */ public function shareApiInternalDefaultExpireDate(): bool { - //FIXME: mage configurable - return true; return $this->config->getAppValue('core', 'shareapi_default_internal_expire_date', 'no') === 'yes'; } @@ -1710,9 +1708,7 @@ class Manager implements IManager { * @return bool */ public function shareApiInternalDefaultExpireDateEnforced(): bool { - //FIXME: mage configurable - return true; - return $this->shareApiLinkDefaultExpireDate() && + return $this->shareApiInternalDefaultExpireDate() && $this->config->getAppValue('core', 'shareapi_enforce_internal_expire_date', 'no') === 'yes'; } @@ -1722,9 +1718,6 @@ class Manager implements IManager { * @return int */ public function shareApiInternalDefaultExpireDays(): int { - - //FIXME: mage configurable - return 6; return (int)$this->config->getAppValue('core', 'shareapi_internal_expire_after_n_days', '7'); } |