Actualy return data

Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
This commit is contained in:
Roeland Jago Douma 2019-10-29 21:10:50 +01:00
parent 96eedc5eb2
commit 0c0ca45d50
No known key found for this signature in database
GPG key ID: F941078878347C0C

View file

@ -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');
}