From d67b5e77460f197a9b3e0e9d02337918244ec2ab Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=BCneyt=20=C5=9Eent=C3=BCrk?= Date: Thu, 2 Nov 2017 00:36:17 +0300 Subject: [PATCH] replace module version and download path issue --- app/Utilities/Updater.php | 2 +- app/Utilities/Versions.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/Utilities/Updater.php b/app/Utilities/Updater.php index 3de7d4045..c9d2c41c1 100644 --- a/app/Utilities/Updater.php +++ b/app/Utilities/Updater.php @@ -99,7 +99,7 @@ class Updater if ($alias == 'core') { $url = 'core/download/' . $version . '/' . $info['php'] . '/' . $info['mysql']; } 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]); diff --git a/app/Utilities/Versions.php b/app/Utilities/Versions.php index b6bd46a70..100ba7339 100644 --- a/app/Utilities/Versions.php +++ b/app/Utilities/Versions.php @@ -85,7 +85,7 @@ class Versions $alias = $module->get('alias'); $version = $module->get('version'); - $url = 'apps/items/' . $alias . '/version/' . $version . '/' . $info['akaunting']; + $url = 'apps/' . $alias . '/version/' . $version . '/' . $info['akaunting']; $data[$alias] = static::getLatestVersion($url); }