diff --git a/js/admin/Admin.js b/js/admin/Admin.js index 99866c349..5830f13f5 100644 --- a/js/admin/Admin.js +++ b/js/admin/Admin.js @@ -85,7 +85,7 @@ feedFetcherTimeoutInput.val(data.feedFetcherTimeout); useCronUpdatesInput.prop('checked', data.useCronUpdates); exploreUrlInput.val(data.exploreUrl); - updateInterval.val(data.updateInterval); + updateIntervalInput.val(data.updateInterval); }); }; diff --git a/lib/Config/Config.php b/lib/Config/Config.php index 35d947871..727cbdb7d 100644 --- a/lib/Config/Config.php +++ b/lib/Config/Config.php @@ -196,8 +196,10 @@ class Config $this->exploreUrl . "\n" . 'feedFetcherTimeout = ' . $this->feedFetcherTimeout . "\n" . + 'updateInterval = ' . + $this->updateInterval . "\n" . 'useCronUpdates = ' . - var_export($this->useCronUpdates, true); + var_export($this->useCronUpdates, true); ; $this->fileSystem->get($configPath)->putContent($ini); diff --git a/lib/Controller/AdminController.php b/lib/Controller/AdminController.php index a8fcf7891..c5a476577 100644 --- a/lib/Controller/AdminController.php +++ b/lib/Controller/AdminController.php @@ -110,7 +110,7 @@ class AdminController extends Controller $this->config->setFeedFetcherTimeout($feedFetcherTimeout); $this->config->setUseCronUpdates($useCronUpdates); $this->config->setExploreUrl($exploreUrl); - $this->config->setupdateInterval($updateInterval); + $this->config->setUpdateInterval($updateInterval); $this->config->write($this->configPath); return [ @@ -122,7 +122,7 @@ class AdminController extends Controller 'feedFetcherTimeout' => $this->config->getFeedFetcherTimeout(), 'useCronUpdates' => $this->config->getUseCronUpdates(), 'exploreUrl' => $this->config->getExploreUrl(), - 'updateInterval' => $this->config->getupdateInterval(), + 'updateInterval' => $this->config->getUpdateInterval(), ]; } } diff --git a/lib/Cron/Updater.php b/lib/Cron/Updater.php index 9a65554a9..a33d7e7c1 100644 --- a/lib/Cron/Updater.php +++ b/lib/Cron/Updater.php @@ -42,7 +42,7 @@ class Updater extends TimedJob $this->status = $status; $this->updaterService = $updaterService; - parent::setInterval($this->config->getupdateInterval()); + parent::setInterval($this->config->getUpdateInterval()); } protected function run($argument)