Permalink
Browse files

MDL-37332 portfolio: don't add double slashes

get_filepath() always returns trailing slash.

This breaks windows export - thanks to Jason Platts
  • Loading branch information...
danpoltawski committed May 24, 2013
1 parent b6f8a93 commit e86a26c9b25030a2d2e0cd0984d042629b539ff3
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/portfolio/exporter.php
@@ -835,7 +835,7 @@ public function get_tempfiles($skipfile='portfolio-export.zip') {
if ($f->get_filename() == $skipfile) {
continue;
}
$returnfiles[$f->get_filepath() . '/' . $f->get_filename()] = $f;
$returnfiles[$f->get_filepath() . $f->get_filename()] = $f;
}
return $returnfiles;
}

0 comments on commit e86a26c

Please sign in to comment.