Shows Versioninfo of CURRENT Version instead of newest
这个提交包含在:
父节点
065c2f96f9
当前提交
a7412331c2
共有 1 个文件被更改,包括 8 次插入 和 2 次删除
|
|
@ -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>
|
||||
|
|
|
|||
正在加载…
在新工单中引用