From 686ecec14a12e1247581b80b9ce409792b991ea2 Mon Sep 17 00:00:00 2001 From: denisdulici Date: Tue, 3 Dec 2019 15:46:51 +0300 Subject: [PATCH] minor fixes --- app/Console/Commands/Update.php | 2 +- app/Utilities/Versions.php | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/app/Console/Commands/Update.php b/app/Console/Commands/Update.php index a5f79e0c0..9d4150996 100644 --- a/app/Console/Commands/Update.php +++ b/app/Console/Commands/Update.php @@ -30,7 +30,7 @@ class Update extends Command * * @var string */ - protected $description = 'Allows to update Akaunting directly through CLI'; + protected $description = 'Allows to update Akaunting and modules directly through CLI'; /** * Create a new command instance. diff --git a/app/Utilities/Versions.php b/app/Utilities/Versions.php index d32945cfb..7830b359c 100644 --- a/app/Utilities/Versions.php +++ b/app/Utilities/Versions.php @@ -65,12 +65,12 @@ class Versions $info = Info::all(); // No data in cache, grab them from remote - $data = array(); + $data = []; // Check core first $url = 'core/version/' . $info['akaunting'] . '/' . $info['php'] . '/' . $info['mysql'] . '/' . $info['companies']; - $data['core'] = '2.0.2'; + $data['core'] = static::getLatestVersion($url, $info['akaunting']); // Then modules foreach ($modules as $module) {