mirror of
https://github.com/chylex/Nextcloud-News.git
synced 2025-04-06 19:15:44 +02:00
Fix UpdateInteval not being saved to config
Signed-off-by: Benjamin Brahmer <info@b-brahmer.de>
This commit is contained in:
parent
250ad619b7
commit
9bb6bf691c
@ -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);
|
||||
});
|
||||
|
||||
};
|
||||
|
@ -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);
|
||||
|
@ -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(),
|
||||
];
|
||||
}
|
||||
}
|
||||
|
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user