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) {