File tree Expand file tree Collapse file tree 2 files changed +16
-1
lines changed Expand file tree Collapse file tree 2 files changed +16
-1
lines changed Original file line number Diff line number Diff line change @@ -191,6 +191,17 @@ private function introduceComicbookTypes() {
191
191
return $ this ->updateMimetypes ($ updatedMimetypes );
192
192
}
193
193
194
+ private function introduceOpenDocumentTemplates () {
195
+ $ updatedMimetypes = [
196
+ 'ott ' => 'application/vnd.oasis.opendocument.text-template ' ,
197
+ 'ots ' => 'application/vnd.oasis.opendocument.spreadsheet-template ' ,
198
+ 'otp ' => 'application/vnd.oasis.opendocument.presentation-template ' ,
199
+ 'otg ' => 'application/vnd.oasis.opendocument.graphics-template ' ,
200
+ ];
201
+
202
+ return $ this ->updateMimetypes ($ updatedMimetypes );
203
+ }
204
+
194
205
/**
195
206
* Fix mime types
196
207
*/
@@ -227,5 +238,9 @@ public function run(IOutput $out) {
227
238
if (version_compare ($ ocVersionFromBeforeUpdate , '14.0.0.10 ' , '< ' ) && $ this ->introduceComicbookTypes ()) {
228
239
$ out ->info ('Fixed comicbook mime types ' );
229
240
}
241
+
242
+ if (version_compare ($ ocVersionFromBeforeUpdate , '20.0.0.5 ' , '< ' ) && $ this ->introduceOpenDocumentTemplates ()) {
243
+ $ out ->info ('Fixed OpenDocument template mime types ' );
244
+ }
230
245
}
231
246
}
Original file line number Diff line number Diff line change 29
29
// between betas, final and RCs. This is _not_ the public version number. Reset minor/patchlevel
30
30
// when updating major/minor version number.
31
31
32
- $ OC_Version = [20 , 0 , 0 , 4 ];
32
+ $ OC_Version = [20 , 0 , 0 , 5 ];
33
33
34
34
// The human readable string
35
35
$ OC_VersionString = '20.0.0 Beta 2 ' ;
You can’t perform that action at this time.
0 commit comments