From 87d0125ca2031c96568cb005b867f3b3a5fd37b7 Mon Sep 17 00:00:00 2001 From: Dmitrii Metelkin Date: Wed, 4 Sep 2024 09:52:01 +1000 Subject: [PATCH] issue #223: fix broken manageworkflow page --- manageworkflow.php | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/manageworkflow.php b/manageworkflow.php index 878c91d..cb2c7b5 100644 --- a/manageworkflow.php +++ b/manageworkflow.php @@ -40,6 +40,9 @@ throw new moodle_exception('invalidaction'); } +$PAGE->set_context($context); +$PAGE->set_pagelayout('admin'); + $workflow = \tool_trigger\workflow_manager::get_workflow($workflowid); if (!$workflow) { throw new moodle_exception('invaliditemid'); @@ -51,11 +54,10 @@ '/admin/tool/trigger/manageworkflow.php', ['workflowid' => $workflowid] ); -$PAGE->set_context($context); -$PAGE->set_url($url); -$PAGE->set_pagelayout('admin'); + $PAGE->set_title($workflowname); $PAGE->set_heading($workflowname); +$PAGE->set_url($url); require_sesskey();