File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -114,7 +114,7 @@ public static function execute(
114114 $ files = '' ,
115115 $ params = ''
116116 ) {
117- global $ USER , $ SESSION ;
117+ global $ USER , $ PAGE , $ SESSION ;
118118 // First, see if the web service is enabled.
119119 if (!get_config ('qtype_coderunner ' , 'wsenabled ' )) {
120120 throw new qtype_coderunner_exception (get_string ('wsdisabled ' , 'qtype_coderunner ' ));
@@ -138,6 +138,7 @@ public static function execute(
138138 throw new qtype_coderunner_exception (get_string ('wsnoaccess ' , 'qtype_coderunner ' ));
139139 }
140140
141+ $ PAGE ->set_context ($ context ); // *** Temporary hack - to be removed after the rewrite of the grade caching module.
141142 $ sandbox = qtype_coderunner_sandbox::get_best_sandbox ($ language , true );
142143 if ($ sandbox === null ) {
143144 throw new qtype_coderunner_exception (get_string ('wsnolanguage ' , 'qtype_coderunner ' , $ language ));
You can’t perform that action at this time.
0 commit comments