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-31 11:49:55 +08:00
parent b6f8a93642
commit e86a26c9b2
+1 -1
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;
}