mirror of
https://github.com/moodle/moodle.git
synced 2025-08-05 00:46:50 +02:00
Full path for some silly Windows machines
This commit is contained in:
parent
6e66c22f4c
commit
d0e922a9b2
1 changed files with 2 additions and 2 deletions
|
@ -86,11 +86,11 @@
|
|||
}
|
||||
}
|
||||
|
||||
if (!file_exists("./format/$course->format.php")) { // Default format is weeks
|
||||
if (!file_exists("$CFG->dirroot/course/format/$course->format.php")) { // Default format is weeks
|
||||
$course->format = "weeks";
|
||||
}
|
||||
|
||||
require("./format/$course->format.php"); // Include the actual course format
|
||||
require("$CFG->dirroot/course/format/$course->format.php"); // Include the actual course format
|
||||
|
||||
print_footer();
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue