File tree 4 files changed +22
-0
lines changed
4 files changed +22
-0
lines changed Original file line number Diff line number Diff line change
1
+ # .github/workflows/ci.yml
2
+ name : ci
3
+
4
+ on : [push, pull_request]
5
+
6
+ jobs :
7
+ ci :
8
+ uses : catalyst/catalyst-moodle-workflows/.github/workflows/ci.yml@main
Original file line number Diff line number Diff line change 16
16
17
17
namespace mod_hvp \external ;
18
18
19
+ defined ('MOODLE_INTERNAL ' ) || die ();
20
+ require_once ($ CFG ->dirroot . '/lib/externallib.php ' );
21
+
22
+ // Note - external API has moved to namespaced classes in 4.2+ due to MDL-76583. Including externallib.php file
23
+ // aliases the classes to maintain compatibility with 4.0+.
19
24
use external_api ;
20
25
use external_function_parameters ;
21
26
use external_multiple_structure ;
Original file line number Diff line number Diff line change 16
16
17
17
namespace mod_hvp \external ;
18
18
19
+ defined ('MOODLE_INTERNAL ' ) || die ();
20
+ require_once ($ CFG ->dirroot . '/lib/externallib.php ' );
21
+
22
+ // Note - context -> \core\context in 4.2+ due to MDL-74936. However, it is aliased so keep it this way
23
+ // to maintain 4.0+ compatibility.
19
24
use context ;
25
+
26
+ // Note - external API has moved to namespaced classes in 4.2+ due to MDL-76583. Including externallib.php file
27
+ // aliases the classes to maintain compatibility with 4.0+.
20
28
use external_api ;
21
29
use external_function_parameters ;
22
30
use external_single_structure ;
Original file line number Diff line number Diff line change 29
29
$ plugin ->component = 'mod_hvp ' ;
30
30
$ plugin ->maturity = MATURITY_STABLE ;
31
31
$ plugin ->release = '1.26.1 ' ;
32
+ $ plugin ->supported = [400 , 404 ];
You can’t perform that action at this time.
0 commit comments