Skip to content

Commit

Permalink
MDL-60762 tool_usertours: Respect $CFG->admin in manager.php
Browse files Browse the repository at this point in the history
  • Loading branch information
adamtppaw authored and junpataleta committed Mar 27, 2018
1 parent a15c745 commit 7ccb6bb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion admin/tool/usertours/classes/manager.php
Original file line number Diff line number Diff line change
Expand Up @@ -819,7 +819,7 @@ public static function update_shipped_tours() {
$existingtourrecords->close();

foreach ($shippedtours as $filename => $version) {
$filepath = $CFG->dirroot . '/admin/tool/usertours/tours/' . $filename;
$filepath = $CFG->dirroot . "/{$CFG->admin}/tool/usertours/tours/" . $filename;
$tourjson = file_get_contents($filepath);
$tour = self::import_tour_from_json($tourjson);

Expand Down

0 comments on commit 7ccb6bb

Please sign in to comment.