Skip to content

Commit

Permalink
MDL-54046 enrol: Make docs urls match the old path
Browse files Browse the repository at this point in the history
Previously each enrolment method had it's own url in the docs. Because of the
refactor in 3.1 all pages are now served from the same script. We need to
manually set the docs url so that it points to the old docs pages.
  • Loading branch information
Damyon Wiese authored and andrewnicols committed May 6, 2016
1 parent d066ed8 commit 8668796
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions enrol/editinstance.php
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@

$PAGE->set_url('/enrol/editinstance.php', array('courseid' => $course->id, 'id' => $instanceid, 'type' => $type));
$PAGE->set_pagelayout('admin');
$PAGE->set_docs_path('enrol/' . $type . '/edit');

if (empty($return)) {
$return = new moodle_url('/enrol/instances.php', array('id' => $course->id));
Expand Down

0 comments on commit 8668796

Please sign in to comment.