Actualy return data
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
This commit is contained in:
parent
96eedc5eb2
commit
0c0ca45d50
1 changed files with 1 additions and 8 deletions
|
@ -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');
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue