From e9fd6e5dd62551bfe0a1422a33cef277d7533a72 Mon Sep 17 00:00:00 2001 From: Dan Poltawski Date: Fri, 24 May 2013 15:16:57 +0800 Subject: [PATCH] MDL-37332 portfolio: don't add double slashes get_filepath() always returns trailing slash. This breaks windows export - thanks to Jason Platts --- lib/portfolio/exporter.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/portfolio/exporter.php b/lib/portfolio/exporter.php index cc73d37eb89..879f68b2aa9 100644 --- a/lib/portfolio/exporter.php +++ b/lib/portfolio/exporter.php @@ -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; }