Skip to content

Commit

Permalink
MDL-37332 portfolio: don't add double slashes
Browse files Browse the repository at this point in the history
get_filepath() always returns trailing slash.

This breaks windows export - thanks to Jason Platts
  • Loading branch information
danpoltawski committed May 31, 2013
1 parent b6f8a93 commit e86a26c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/portfolio/exporter.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit e86a26c

Please sign in to comment.