summaryrefslogtreecommitdiffstats
path: root/apps/files_trashbin/lib
diff options
context:
space:
mode:
authorVictor Dubiniuk <victor.dubiniuk@gmail.com>2015-08-05 01:00:42 +0300
committerVictor Dubiniuk <victor.dubiniuk@gmail.com>2015-08-10 23:54:44 +0300
commit33c29d3da75447da6a659239e8a2b60c72230588 (patch)
tree00fc25a66474e67b305f14c8f1d118c4c7a1f504 /apps/files_trashbin/lib
parent4ef26157880f5cd5d5bd27abe0a6991d7c8a415a (diff)
downloadnextcloud-server-33c29d3da75447da6a659239e8a2b60c72230588.tar.gz
nextcloud-server-33c29d3da75447da6a659239e8a2b60c72230588.zip
Migrate settings
Diffstat (limited to 'apps/files_trashbin/lib')
-rw-r--r--apps/files_trashbin/lib/expiration.php5
1 files changed, 2 insertions, 3 deletions
diff --git a/apps/files_trashbin/lib/expiration.php b/apps/files_trashbin/lib/expiration.php
index 3b57c067ae7..138540febf8 100644
--- a/apps/files_trashbin/lib/expiration.php
+++ b/apps/files_trashbin/lib/expiration.php
@@ -24,8 +24,7 @@ namespace OCA\Files_Trashbin;
use \OCP\IConfig;
use \OCP\AppFramework\Utility\ITimeFactory;
-class Expiration
-{
+class Expiration {
// how long do we keep files in the trash bin if no other value is defined in the config file (unit: days)
const DEFAULT_RETENTION_OBLIGATION = 30;
@@ -48,7 +47,7 @@ class Expiration
public function __construct(IConfig $config,ITimeFactory $timeFactory){
$this->timeFactory = $timeFactory;
- $this->retentionObligation = $config->getValue('trashbin_retention_obligation', 'auto');
+ $this->retentionObligation = $config->getSystemValue('trashbin_retention_obligation', 'auto');
if ($this->retentionObligation !== 'disabled') {
$this->parseRetentionObligation();