File tree 2 files changed +6
-66
lines changed
2 files changed +6
-66
lines changed Original file line number Diff line number Diff line change @@ -24,13 +24,16 @@ function param($key, $default = false) {
24
24
}
25
25
26
26
// 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 {
28
32
echo 'INVALID_VERSION ' . $ version ;
29
33
return ;
30
34
}
31
35
32
36
33
- $ update_version = $ versions [$ version ];
34
37
$ filename_update = 'scripts/update_to_ ' . $ update_version . '.php ' ;
35
38
36
39
// Current version have no update because not specified or script doesn't exist.
Original file line number Diff line number Diff line change 54
54
'1.24.2 ' => '1.24.3 ' ,
55
55
'1.24.3 ' => '1.25.0 ' ,
56
56
'1.25.0 ' => '1.26.0 ' ,
57
- '1.26.0 ' => ' 1.27.0 ' , // doesn't exist (yet)
57
+ '1.26.0 ' => null ,
58
58
//BETA
59
59
'0.9.0 ' => '1.1.0 ' ,
60
60
'0.9.1 ' => '1.1.0 ' ,
68
68
'1.3.0-beta ' => '1.3.1-beta ' ,
69
69
'1.3.1-beta ' => '1.3.2-beta ' ,
70
70
'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
134
71
);
You can’t perform that action at this time.
0 commit comments