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:52:34 +08:00
parent f36066fa9e
commit e9fd6e5dd6
+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;
}