From 33c29d3da75447da6a659239e8a2b60c72230588 Mon Sep 17 00:00:00 2001 From: Victor Dubiniuk Date: Wed, 5 Aug 2015 01:00:42 +0300 Subject: Migrate settings --- apps/files_trashbin/lib/expiration.php | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'apps/files_trashbin/lib') 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(); -- cgit v1.2.3