Fix changelog link when preview update branches are enabled (#1314)

This commit is contained in:
Belle Aerni authored and GitHub committed 2023-06-12 06:31:00 +02:00
1 parent a02b1b32fe
commit 6f2cedbb2c
1 file changed
+2 -2
+2 -2
View File
@@ -81,8 +81,8 @@ class Update implements InjectionAwareInterface
$branch = (in_array($branch, ['release', 'preview'])) ? $branch : 'release';
if ($branch === 'preview') {
$latestReleaseVersion = $this->getLatestVersionInfo('release')['version'];
$compareLink = "https://github.com/FOSSBilling/FOSSBilling/compare/{$latestReleaseVersion}...main";
$currentVersion = Version::VERSION;
$compareLink = "https://github.com/FOSSBilling/FOSSBilling/compare/{$currentVersion}...main";
$downloadUrl = 'https://fossbilling.org/downloads/preview/';
return [