File tree 2 files changed +5
-1
lines changed
2 files changed +5
-1
lines changed Original file line number Diff line number Diff line change 32
32
require_once (__DIR__ . '/../../config.php ' );
33
33
require_once ($ CFG ->libdir . '/externallib.php ' );
34
34
35
+ define ('PREFERRED_RENDERER_TARGET ' , RENDERER_TARGET_GENERAL );
36
+
35
37
$ rawjson = file_get_contents ('php://input ' );
36
38
37
39
$ requests = json_decode ($ rawjson , true );
Original file line number Diff line number Diff line change @@ -137,7 +137,9 @@ protected function get_target_suffix($target) {
137
137
// If the target hasn't been specified we need to guess the defaults.
138
138
// We also override the target with the default if the maintenance target has been provided.
139
139
// This ensures we don't use the maintenance renderer if we are processing a special target.
140
- if (CLI_SCRIPT ) {
140
+ if (defined ('PREFERRED_RENDERER_TARGET ' )) {
141
+ $ target = PREFERRED_RENDERER_TARGET ;
142
+ } else if (CLI_SCRIPT ) {
141
143
$ target = RENDERER_TARGET_CLI ;
142
144
} else if (AJAX_SCRIPT ) {
143
145
$ target = RENDERER_TARGET_AJAX ;
You can’t perform that action at this time.
0 commit comments