Skip to content

Commit

Permalink
issue #223: fix broken manageworkflow page
Browse files Browse the repository at this point in the history
  • Loading branch information
dmitriim committed Sep 3, 2024
1 parent f3a776d commit 87d0125
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions manageworkflow.php
Original file line number Diff line number Diff line change
Expand Up @@ -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');
Expand All @@ -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();

Expand Down

0 comments on commit 87d0125

Please sign in to comment.