Skip to content

Commit 87d0125

Browse files
committed
issue #223: fix broken manageworkflow page
1 parent f3a776d commit 87d0125

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

manageworkflow.php

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,9 @@
4040
throw new moodle_exception('invalidaction');
4141
}
4242

43+
$PAGE->set_context($context);
44+
$PAGE->set_pagelayout('admin');
45+
4346
$workflow = \tool_trigger\workflow_manager::get_workflow($workflowid);
4447
if (!$workflow) {
4548
throw new moodle_exception('invaliditemid');
@@ -51,11 +54,10 @@
5154
'/admin/tool/trigger/manageworkflow.php',
5255
['workflowid' => $workflowid]
5356
);
54-
$PAGE->set_context($context);
55-
$PAGE->set_url($url);
56-
$PAGE->set_pagelayout('admin');
57+
5758
$PAGE->set_title($workflowname);
5859
$PAGE->set_heading($workflowname);
60+
$PAGE->set_url($url);
5961

6062
require_sesskey();
6163

0 commit comments

Comments
 (0)