From 95530f62513a82c385d9378b4a59da57d74092d9 Mon Sep 17 00:00:00 2001 From: Bernhard Posselt Date: Wed, 5 Nov 2014 11:30:27 +0100 Subject: update picofeed, add max size setting, fix #642 --- controller/admincontroller.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'controller') diff --git a/controller/admincontroller.php b/controller/admincontroller.php index e421c44e3..379d83770 100644 --- a/controller/admincontroller.php +++ b/controller/admincontroller.php @@ -41,6 +41,7 @@ class AdminController extends Controller { 'maxRedirects' => $this->config->getMaxRedirects(), 'feedFetcherTimeout' => $this->config->getFeedFetcherTimeout(), 'useCronUpdates' => $this->config->getUseCronUpdates(), + 'maxSize' => $this->config->getMaxSize(), ]; return new TemplateResponse($this->appName, 'admin', $data, 'blank'); } @@ -51,15 +52,17 @@ class AdminController extends Controller { * @param int $autoPurgeCount * @param int $maxRedirects * @param int $feedFetcherTimeout + * @param int $maxSize * @param bool $useCronUpdates * @return array with the updated values */ public function update($autoPurgeMinimumInterval, $autoPurgeCount, - $maxRedirects, $feedFetcherTimeout, + $maxRedirects, $feedFetcherTimeout, $maxSize, $useCronUpdates) { $this->config->setAutoPurgeMinimumInterval($autoPurgeMinimumInterval); $this->config->setAutoPurgeCount($autoPurgeCount); $this->config->setMaxRedirects($maxRedirects); + $this->config->setMaxSize($maxSize); $this->config->setFeedFetcherTimeout($feedFetcherTimeout); $this->config->setUseCronUpdates($useCronUpdates); $this->config->write($this->configPath); @@ -69,6 +72,7 @@ class AdminController extends Controller { $this->config->getAutoPurgeMinimumInterval(), 'autoPurgeCount' => $this->config->getAutoPurgeCount(), 'maxRedirects' => $this->config->getMaxRedirects(), + 'maxSize' => $this->config->getMaxSize(), 'feedFetcherTimeout' => $this->config->getFeedFetcherTimeout(), 'useCronUpdates' => $this->config->getUseCronUpdates(), ]; -- cgit v1.2.3