minor fixes

This commit is contained in:
denisdulici 2019-12-03 15:46:51 +03:00
parent e2f73ece9a
commit 686ecec14a
2 changed files with 3 additions and 3 deletions

View File

@ -30,7 +30,7 @@ class Update extends Command
* *
* @var string * @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. * Create a new command instance.

View File

@ -65,12 +65,12 @@ class Versions
$info = Info::all(); $info = Info::all();
// No data in cache, grab them from remote // No data in cache, grab them from remote
$data = array(); $data = [];
// Check core first // Check core first
$url = 'core/version/' . $info['akaunting'] . '/' . $info['php'] . '/' . $info['mysql'] . '/' . $info['companies']; $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 // Then modules
foreach ($modules as $module) { foreach ($modules as $module) {