File tree 2 files changed +13
-0
lines changed
2 files changed +13
-0
lines changed 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 the 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 ;
You can’t perform that action at this time.
0 commit comments