MDL-37332 portfolio: don't add double slashes
authorDan Poltawski <dan@moodle.com>
Fri, 24 May 2013 07:16:57 +0000 (15:16 +0800)
committerDan Poltawski <dan@moodle.com>
Fri, 31 May 2013 03:49:55 +0000 (11:49 +0800)
get_filepath() always returns trailing slash.

This breaks windows export - thanks to Jason Platts

lib/portfolio/exporter.php

index cc73d37..879f68b 100644 (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;
     }