File tree Expand file tree Collapse file tree 2 files changed +9
-27
lines changed Expand file tree Collapse file tree 2 files changed +9
-27
lines changed Original file line number Diff line number Diff line change @@ -56,10 +56,7 @@ public function __construct()
56
56
$ this ->http = $ DIC ->http ();
57
57
$ this ->ctrl = $ DIC ->ctrl ();
58
58
$ this ->ui = $ DIC ->ui ();
59
-
60
- if ($ this ->isVersionAboveSix ()) {
61
- $ this ->refinery = $ DIC ->refinery ();
62
- }
59
+ $ this ->refinery = $ DIC ->refinery ();
63
60
64
61
parent ::__construct ();
65
62
}
@@ -281,29 +278,13 @@ protected function showForm()
281
278
*/
282
279
protected function getExternalUrlValidation ()
283
280
{
284
- $ fn = static function ($ value ) {
281
+ return $ this -> refinery -> custom ()-> transformation ( static function ($ value ) {
285
282
if (preg_match ('/^(https:\/\/raw\.githubusercontent\.com\/ILIAS.*\.md)$/ ' , $ value )) {
286
283
return $ value ;
287
284
}
288
285
289
286
return null ;
290
- };
291
-
292
- if ($ this ->isVersionAboveSix ()) {
293
- return $ this ->refinery ->custom ()->transformation (
294
- $ fn
295
- );
296
- }
297
-
298
- return (new \ILIAS \Transformation \Factory ())->custom ($ fn );
299
- }
300
-
301
- /**
302
- * @return bool
303
- */
304
- protected function isVersionAboveSix ()
305
- {
306
- return (bool ) version_compare ('6.0 ' , ILIAS_VERSION_NUMERIC , '<= ' );
287
+ });
307
288
}
308
289
309
290
/**
Original file line number Diff line number Diff line change 1
1
<?php
2
2
$ id = 'md_tme ' ;
3
- $ version = '1.4.0 ' ;
4
- $ ilias_min_version = '5.4.0 ' ;
5
- $ ilias_max_version = '6.999 ' ;
6
- $ responsible = 'studer + raimann ag ' ;
7
- $ responsible_mail = 'support@studer-raimann.ch ' ;
3
+ $ version = '2.0.0 ' ;
4
+ $ ilias_min_version = '6.000 ' ;
5
+ $ ilias_max_version = '7.999 ' ;
6
+ $ responsible = 'sr solutions ag ' ;
7
+ $ responsible_mail = 'support@sr.solutions ' ;
8
+ $ supports_cli_setup = true ;
You can’t perform that action at this time.
0 commit comments