Fix parameter issue on update check
This commit is contained in:
parent
37520bb571
commit
9cf8ed2ae0
2 changed files with 5 additions and 1 deletions
|
@ -3,6 +3,10 @@ All notable changes to this project will be documented in this file.
|
|||
|
||||
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).
|
||||
|
||||
## [Unreleased]
|
||||
### Fixed
|
||||
- Formatting error on the check for updates.
|
||||
|
||||
## [3.3.0] - 2020-11-12
|
||||
### Added
|
||||
- Enabled PHP 8 support.
|
||||
|
|
|
@ -136,7 +136,7 @@ class UpgradeController extends Controller
|
|||
$jsonResponse['status'] = 'OK';
|
||||
foreach ($json as $release) {
|
||||
if (version_compare($release->tag_name, PLATFORM_VERSION, '>') && ($release->prerelease === $acceptPrerelease)) {
|
||||
$jsonResponse['message'] = lang('new_version_available', $release->tag_name);
|
||||
$jsonResponse['message'] = lang('new_version_available', [$release->tag_name]);
|
||||
$jsonResponse['upgrade'] = true;
|
||||
break;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue