replace module version and download path issue

This commit is contained in:
Cüneyt Şentürk 2017-11-02 00:36:17 +03:00
parent bef35fd08a
commit d67b5e7746
2 changed files with 2 additions and 2 deletions

View File

@ -99,7 +99,7 @@ class Updater
if ($alias == 'core') { if ($alias == 'core') {
$url = 'core/download/' . $version . '/' . $info['php'] . '/' . $info['mysql']; $url = 'core/download/' . $version . '/' . $info['php'] . '/' . $info['mysql'];
} else { } else {
$url = 'apps/items/' . $alias . '/download/' . $version . '/' . $info['akaunting'] . '/' . $info['token']; $url = 'apps/' . $alias . '/download/' . $version . '/' . $info['akaunting'] . '/' . $info['token'];
} }
$response = static::getRemote($url, ['timeout' => 30, 'track_redirects' => true]); $response = static::getRemote($url, ['timeout' => 30, 'track_redirects' => true]);

View File

@ -85,7 +85,7 @@ class Versions
$alias = $module->get('alias'); $alias = $module->get('alias');
$version = $module->get('version'); $version = $module->get('version');
$url = 'apps/items/' . $alias . '/version/' . $version . '/' . $info['akaunting']; $url = 'apps/' . $alias . '/version/' . $version . '/' . $info['akaunting'];
$data[$alias] = static::getLatestVersion($url); $data[$alias] = static::getLatestVersion($url);
} }