minor fixes
This commit is contained in:
parent
e2f73ece9a
commit
686ecec14a
@ -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.
|
||||||
|
@ -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) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user