mirror of
https://github.com/moodle/moodle.git
synced 2025-01-19 14:27:22 +01:00
Merge branch 'wip-mdl-55379-fix2' of https://github.com/rajeshtaneja/moodle
This commit is contained in:
commit
a2b48e4127
@ -65,7 +65,8 @@ function testing_cli_argument_path($moodlepath) {
|
||||
$path = testing_cli_fix_directory_separator($path);
|
||||
|
||||
if (strpos($path, $cwd) === 0) {
|
||||
$path = substr($path, strlen($cwd));
|
||||
// Remove current working directory and directory separator.
|
||||
$path = substr($path, strlen($cwd)+1);
|
||||
}
|
||||
|
||||
return $path;
|
||||
|
Loading…
x
Reference in New Issue
Block a user