mirror of
https://github.com/moodle/moodle.git
synced 2025-08-06 01:16:44 +02:00
MDL-51832 tests: Fix failing code manager unit tests on Windows
This commit is contained in:
parent
30c264211e
commit
c8a6d162a0
2 changed files with 2 additions and 1 deletions
|
@ -325,7 +325,7 @@ class code_manager {
|
|||
if ($fileinfo->isDir() and substr($key, -1) !== '/') {
|
||||
$key .= '/';
|
||||
}
|
||||
$files[$key] = $fileinfo->getRealPath();
|
||||
$files[str_replace(DIRECTORY_SEPARATOR, '/', $key)] = str_replace(DIRECTORY_SEPARATOR, '/', $fileinfo->getRealPath());
|
||||
}
|
||||
return $files;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue