From 8abddeab4f541883721d912f97dec07bffdfc6b8 Mon Sep 17 00:00:00 2001 From: Sean Molenaar Date: Sat, 14 Nov 2020 00:09:38 +0100 Subject: Remove usage of old Folder code Signed-off-by: Sean Molenaar --- lib/Service/StatusService.php | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) (limited to 'lib/Service/StatusService.php') 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() ] ]; -- cgit v1.2.3