diff options
author | Bernhard Posselt <dev@bernhard-posselt.com> | 2014-11-05 11:30:27 +0100 |
---|---|---|
committer | Bernhard Posselt <dev@bernhard-posselt.com> | 2014-11-05 11:30:38 +0100 |
commit | 95530f62513a82c385d9378b4a59da57d74092d9 (patch) | |
tree | a4d17994548999b42e99371f381da8c256ee39bf /controller | |
parent | 57163ad25a7dc63abd8aff8663c185ddad398466 (diff) |
update picofeed, add max size setting, fix #642
Diffstat (limited to 'controller')
-rw-r--r-- | controller/admincontroller.php | 6 |
1 files changed, 5 insertions, 1 deletions
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(), ]; |