Shows Versioninfo of CURRENT Version instead of newest

这个提交包含在:
int2001 2023-12-15 11:54:26 +00:00
父节点 065c2f96f9
当前提交 a7412331c2
找不到此签名对应的密钥
GPG 密钥 ID: DFB1C13CD2DB037B

查看文件

@ -39,8 +39,14 @@
if ($response !== false) {
$data = json_decode($response, true);
$current_version=$this->optionslib->get_option('version');
if ($data !== null && !empty($data)) {
$firstRelease = $data[0];
foreach ($data as $singledata) {
if ($singledata['name']==$current_version) {
$firstRelease = $singledata;
continue;
}
}
$releaseBody = isset($firstRelease['body']) ? $firstRelease['body'] : 'No release information available';
$htmlReleaseBody = htmlspecialchars($releaseBody);
@ -73,4 +79,4 @@
</div>
</div>
</div>
</div>
</div>