Skip to content

Commit f09bb30

Browse files
authored
Skip 26H1, remove win10 check (#91)
1 parent 319efe5 commit f09bb30

1 file changed

Lines changed: 3 additions & 12 deletions

File tree

viewer.php

Lines changed: 3 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -31,31 +31,22 @@
3131
$eoldata = json_decode(file_get_contents('https://endoflife.date/api/windows.json'), true);
3232
$validversions = '';
3333
$latestver = '';
34-
$found10 = false;
3534
$found11 = false;
3635

3736
// Set Latest Version
3837
foreach ($eoldata as $eolitem) {
39-
// Windows 10
40-
if (!(bool) $eolitem['lts']
41-
&& !str_contains($eolitem['cycle'], '-e')
42-
&& str_contains($eolitem['cycle'], '10')
43-
&& $found10 === false) {
44-
$latestver = $latestver . $eolitem['latest'] . ' ';
45-
$found10 = true;
46-
}
47-
4838
// Windows 11
4939
if (!(bool) $eolitem['lts']
5040
&& !str_contains($eolitem['cycle'], '-e')
5141
&& str_contains($eolitem['cycle'], '11')
52-
&& $found11 == false) {
42+
&& $found11 == false
43+
&& !str_contains($eolitem['latest'], '10.0.28000')) {
5344
$latestver = $latestver . $eolitem['latest'] . ' ';
5445
$found11 = true;
5546
}
5647

5748
// Break out of loop
58-
if ($found10 == true && $found11 == true) {
49+
if ($found11 == true) {
5950
break;
6051
}
6152
}

0 commit comments

Comments
 (0)