We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 97c84e7 commit 283a8ebCopy full SHA for 283a8eb
classes/processor.php
@@ -53,9 +53,9 @@ class processor {
53
* Processes the trigger plugins for all relevant courses.
54
*/
55
public function call_trigger() {
56
- global $PAGE;
+ global $FULLSCRIPT;
57
58
- $run = isset($PAGE->url) && strpos($PAGE->url, 'run.php') !== false;
+ $run = str_contains($FULLSCRIPT, 'run.php');
59
60
$activeworkflows = workflow_manager::get_active_automatic_workflows();
61
$exclude = [];
0 commit comments