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:
Dan Poltawski 2013-05-24 15:16:57 +08:00
parent b6f8a93642
commit e86a26c9b2

View File

@ -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;
}