MDL-60762 tool_usertours: Respect $CFG->admin in manager.php

This commit is contained in:
Adam Pawełczak 2018-02-27 14:24:32 +01:00 committed by Jun Pataleta
parent a15c745936
commit 7ccb6bb3cc

View File

@ -819,7 +819,7 @@ class manager {
$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);