diff options
author | Bernhard Posselt <dev@bernhard-posselt.com> | 2014-09-22 12:14:23 +0200 |
---|---|---|
committer | Bernhard Posselt <dev@bernhard-posselt.com> | 2014-09-22 12:14:23 +0200 |
commit | 19910df42e93ef370048e8d0d2609af71bf46676 (patch) | |
tree | 2a9557b219a6f3d8efb830333900473a93241b19 /utility | |
parent | fa73d339df403506d58104ee60575972b88bfc09 (diff) |
fix #454, allow global enhancers
Diffstat (limited to 'utility')
-rw-r--r-- | utility/config.php | 12 |
1 files changed, 8 insertions, 4 deletions
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" . |