summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBenjamin Brahmer <info@b-brahmer.de>2020-09-02 08:23:59 +0200
committerBenjamin Brahmer <info@b-brahmer.de>2020-09-02 08:31:10 +0200
commit9bb6bf691c68a2f35854c12684bd763b62a026b8 (patch)
treea42b8336d0c424051f9059831a8c3e611c629dee
parent250ad619b777f82d2a36770af2940710b1d6f6cd (diff)
Fix UpdateInteval not being saved to config
Signed-off-by: Benjamin Brahmer <info@b-brahmer.de>
-rw-r--r--js/admin/Admin.js2
-rw-r--r--lib/Config/Config.php4
-rw-r--r--lib/Controller/AdminController.php4
-rw-r--r--lib/Cron/Updater.php2
4 files changed, 7 insertions, 5 deletions
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)