MDL-37332 portfolio: don't add double slashes
get_filepath() always returns trailing slash. This breaks windows export - thanks to Jason Platts
This commit is contained in:
@@ -835,7 +835,7 @@ class portfolio_exporter {
|
||||
if ($f->get_filename() == $skipfile) {
|
||||
continue;
|
||||
}
|
||||
$returnfiles[$f->get_filepath() . '/' . $f->get_filename()] = $f;
|
||||
$returnfiles[$f->get_filepath() . $f->get_filename()] = $f;
|
||||
}
|
||||
return $returnfiles;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user