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...
1 parent f36066f commit e9fd6e5dd62551bfe0a1422a33cef277d7533a72 @danpoltawski danpoltawski committed May 24, 2013
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 e9fd6e5

Please sign in to comment.