diff options
author | Roeland Jago Douma <rullzer@users.noreply.github.com> | 2020-11-16 14:13:56 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-11-16 14:13:56 +0100 |
commit | 426dc68b456f4ea5c5bfbe9f07053e17924ea31a (patch) | |
tree | fc0977d7fe34835f948c08791884f14dbaeeddac /lib | |
parent | d0f738fd595abc6449e96b4acc06a74905560091 (diff) | |
parent | 28c57004dda25f9d78a9679237d1ec747c1d60b0 (diff) | |
download | nextcloud-server-426dc68b456f4ea5c5bfbe9f07053e17924ea31a.tar.gz nextcloud-server-426dc68b456f4ea5c5bfbe9f07053e17924ea31a.zip |
Merge pull request #24069 from nextcloud/fix-default-internal-expiration-date
Fix default internal expiration date
Diffstat (limited to 'lib')
-rw-r--r-- | lib/private/Share20/Manager.php | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/private/Share20/Manager.php b/lib/private/Share20/Manager.php index ded0d13b6d0..e9895edf95a 100644 --- a/lib/private/Share20/Manager.php +++ b/lib/private/Share20/Manager.php @@ -408,9 +408,9 @@ class Manager implements IManager { $expirationDate = new \DateTime(); $expirationDate->setTime(0,0,0); - $days = (int)$this->config->getAppValue('core', 'internal_defaultExpDays', $this->shareApiLinkDefaultExpireDays()); - if ($days > $this->shareApiLinkDefaultExpireDays()) { - $days = $this->shareApiLinkDefaultExpireDays(); + $days = (int)$this->config->getAppValue('core', 'internal_defaultExpDays', (string)$this->shareApiInternalDefaultExpireDays()); + if ($days > $this->shareApiInternalDefaultExpireDays()) { + $days = $this->shareApiInternalDefaultExpireDays(); } $expirationDate->add(new \DateInterval('P'.$days.'D')); } |