Skip to content

Commit

Permalink
Merge pull request #34 from catalyst/issue30
Browse files Browse the repository at this point in the history
Issue #30: Changed moodle_url construction
  • Loading branch information
Peterburnett authored Mar 23, 2020
2 parents 4718845 + ee93e91 commit 32f7771
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion edit_experiment.php
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@
redirect($prevurl);
} else if ($form->no_submit_button_pressed()) {
// Conditions button action.
redirect(new moodle_url($CFG->wwwroot."/admin/tool/abconfig/edit_conditions.php?id=$experiment->id"));
redirect(new moodle_url('/admin/tool/abconfig/edit_conditions.php', array('id' => $experiment->id)));
} else if ($fromform = $form->get_data()) {
// Form validation means data is safe to go to DB.

Expand Down

0 comments on commit 32f7771

Please sign in to comment.