Skip to content

Commit cb6934e

Browse files
Consider that any *-dev version must update to dev
1 parent 6ca489a commit cb6934e

File tree

2 files changed

+6
-66
lines changed

2 files changed

+6
-66
lines changed

index.php

+5-2
Original file line numberDiff line numberDiff line change
@@ -24,13 +24,16 @@ function param($key, $default = false) {
2424
}
2525

2626
// Version specified is not in the versions array, so it is not supported!
27-
if (!array_key_exists($version, $versions)) {
27+
if (str_ends_with($version, '-dev')) {
28+
$update_version = 'dev';
29+
} elseif (array_key_exists($version, $versions)) {
30+
$update_version = $versions[$version];
31+
} else {
2832
echo 'INVALID_VERSION ' . $version;
2933
return;
3034
}
3135

3236

33-
$update_version = $versions[$version];
3437
$filename_update = 'scripts/update_to_' . $update_version . '.php';
3538

3639
// Current version have no update because not specified or script doesn't exist.

versions.php

+1-64
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@
5454
'1.24.2' => '1.24.3',
5555
'1.24.3' => '1.25.0',
5656
'1.25.0' => '1.26.0',
57-
'1.26.0' => '1.27.0', // doesn't exist (yet)
57+
'1.26.0' => null,
5858
//BETA
5959
'0.9.0' => '1.1.0',
6060
'0.9.1' => '1.1.0',
@@ -68,67 +68,4 @@
6868
'1.3.0-beta' => '1.3.1-beta',
6969
'1.3.1-beta' => '1.3.2-beta',
7070
'1.3.2-beta' => '1.4.0', // no more beta version \o/
71-
// DEV
72-
'1.1.2-dev' => 'dev',
73-
'1.1.3-dev' => 'dev',
74-
'1.1.4-dev' => 'dev',
75-
'1.2-dev' => 'dev',
76-
'1.3.1-dev' => 'dev',
77-
'1.3.2-dev' => 'dev',
78-
'1.3.3-dev' => 'dev',
79-
'1.5.0-dev' => 'dev',
80-
'1.6.0-dev' => 'dev',
81-
'1.7.0-dev' => 'dev',
82-
'1.7.1-dev' => 'dev',
83-
'1.8.0-dev' => 'dev',
84-
'1.8.1-dev' => 'dev',
85-
'1.9.1-dev' => 'dev',
86-
'1.10.1-dev' => 'dev',
87-
'1.10.2-dev' => 'dev',
88-
'1.10.3-dev' => 'dev',
89-
'1.11.1-dev' => 'dev',
90-
'1.11.2-dev' => 'dev',
91-
'1.11.3-dev' => 'dev',
92-
'1.12.1-dev' => 'dev',
93-
'1.13.1-dev' => 'dev',
94-
'1.13.2-dev' => 'dev',
95-
'1.14.1-dev' => 'dev',
96-
'1.14.3-dev' => 'dev',
97-
'1.14.4-dev' => 'dev',
98-
'1.15.0-dev' => 'dev',
99-
'1.15.1-dev' => 'dev',
100-
'1.15.2-dev' => 'dev',
101-
'1.15.3-dev' => 'dev',
102-
'1.15.4-dev' => 'dev',
103-
'1.16.1-dev' => 'dev',
104-
'1.16.2-dev' => 'dev',
105-
'1.16.3-dev' => 'dev',
106-
'1.17.1-dev' => 'dev',
107-
'1.18.1-dev' => 'dev',
108-
'1.18.2-dev' => 'dev',
109-
'1.19.1-dev' => 'dev',
110-
'1.19.2-dev' => 'dev',
111-
'1.19.3-dev' => 'dev',
112-
'1.20.0-dev' => 'dev',
113-
'1.20.1-dev' => 'dev',
114-
'1.20.2-dev' => 'dev',
115-
'1.20.3-dev' => 'dev',
116-
'1.21.0-dev' => 'dev',
117-
'1.21.1-dev' => 'dev',
118-
'1.22.0-dev' => 'dev',
119-
'1.22.1-dev' => 'dev',
120-
'1.22.2-dev' => 'dev',
121-
'1.23.0-dev' => 'dev',
122-
'1.23.1-dev' => 'dev',
123-
'1.23.2-dev' => 'dev',
124-
'1.24.0-dev' => 'dev',
125-
'1.24.1-dev' => 'dev',
126-
'1.24.2-dev' => 'dev',
127-
'1.24.3-dev' => 'dev',
128-
'1.25.0-dev' => 'dev',
129-
'1.25.1-dev' => 'dev',
130-
'1.26.0-dev' => 'dev',
131-
'1.26.1-dev' => 'dev',
132-
'1.26.2-dev' => 'dev', // possible future version, not yet released
133-
'1.27.0-dev' => 'dev', // possible future version, not yet released
13471
);

0 commit comments

Comments
 (0)