From 19910df42e93ef370048e8d0d2609af71bf46676 Mon Sep 17 00:00:00 2001 From: Bernhard Posselt Date: Mon, 22 Sep 2014 12:14:23 +0200 Subject: fix #454, allow global enhancers --- utility/config.php | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) (limited to 'utility') diff --git a/utility/config.php b/utility/config.php index 1e2719818..94e71442b 100644 --- a/utility/config.php +++ b/utility/config.php @@ -18,7 +18,7 @@ use \OCP\ILogger; class Config { - private $fileSystem; + private $fileSystem; private $autoPurgeMinimumInterval; // seconds, used to define how // long deleted folders and feeds // should still be kept for an @@ -75,7 +75,11 @@ class Config { } public function getAutoPurgeMinimumInterval() { - return $this->autoPurgeMinimumInterval; + if ($this->autoPurgeMinimumInterval > 60) { + return $this->autoPurgeMinimumInterval; + } else { + return 60; + } } @@ -162,7 +166,7 @@ class Config { settype($value, $type); $this->$key = $value; } else { - $this->logger->warning('Configuration value "' . $key . + $this->logger->warning('Configuration value "' . $key . '" does not exist. Ignored value.' , $this->loggerParams); } } @@ -173,7 +177,7 @@ class Config { public function write($configPath) { - $ini = + $ini = "autoPurgeMinimumInterval = " . $this->autoPurgeMinimumInterval . "\n" . "autoPurgeCount = " . $this->autoPurgeCount . "\n" . "simplePieCacheDuration = " . $this->simplePieCacheDuration . "\n" . -- cgit v1.2.3