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

This commit is contained in:
Adam Pawełczak
2018-03-27 15:23:19 +08:00
committed by Jun Pataleta
parent 70937a4a20
commit edec1e65d2
+1 -1
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);