diff options
author | Sean Molenaar <sean@seanmolenaar.eu> | 2020-11-14 00:09:38 +0100 |
---|---|---|
committer | Sean Molenaar <SMillerDev@users.noreply.github.com> | 2020-12-08 13:58:12 +0100 |
commit | 8abddeab4f541883721d912f97dec07bffdfc6b8 (patch) | |
tree | 8c176f9ca2fd9e757807481997f265212f154eb2 /lib/Service/StatusService.php | |
parent | 3d98707be95322d16f5883d7a945d658d6316146 (diff) |
Remove usage of old Folder code
Signed-off-by: Sean Molenaar <sean@seanmolenaar.eu>
Diffstat (limited to 'lib/Service/StatusService.php')
-rw-r--r-- | lib/Service/StatusService.php | 16 |
1 files changed, 14 insertions, 2 deletions
diff --git a/lib/Service/StatusService.php b/lib/Service/StatusService.php index acfdf6be1..f46624cd0 100644 --- a/lib/Service/StatusService.php +++ b/lib/Service/StatusService.php @@ -36,9 +36,16 @@ class StatusService $this->connection = $connection; } - public function isProperlyConfigured(): bool + /** + * Check if cron is properly configured + * + * @return bool + */ + public function isCronProperlyConfigured(): bool { + //Is NC cron enabled? $cronMode = $this->settings->getAppValue('core', 'backgroundjobs_mode'); + //Expect nextcloud cron $cronOff = !$this->settings->getAppValue( Application::NAME, 'useCronUpdates', @@ -50,6 +57,11 @@ class StatusService } + /** + * Get the app status + * + * @return array + */ public function getStatus(): array { $version = $this->settings->getAppValue( @@ -60,7 +72,7 @@ class StatusService return [ 'version' => $version, 'warnings' => [ - 'improperlyConfiguredCron' => !$this->isProperlyConfigured(), + 'improperlyConfiguredCron' => !$this->isCronProperlyConfigured(), 'incorrectDbCharset' => !$this->connection->supports4ByteText() ] ]; |